TeamCity Get svn url in msbuild script

I'm using TeamCity 8 to run a msbuild script.
I thought TeamCity would set an environment variable or msbuild property with the vcs root url. But I can't find it.
I've tried running the script with /v:diag to get more info, and still can't find any property.
Can I get the url from Teamcity or do I have to run something like svn.exe info?

Also posted here: http://stackoverflow.com/questions/23648508/teamcity-get-svn-url-in-msbuild-script

1 comment
Comment actions Permalink

You can go to build configuration->parameters and define a Environment variable here and set %vcsroot.url% as its value.

See http://confluence.jetbrains.com/display/TCD8/Defining+and+Using+Build+Parameters+in+Build+Configuration and http://confluence.jetbrains.com/display/TCD8/Configuring+Build+Parameters for details.

0

Please sign in to leave a comment.