How to get url of server in script

Is there a property or environment variable or some other way to dynamically get the TeamCity Url that the job would be running under from a build script?
I don't want to hard-code a url path into my scripts and I am using the REST API.

Thanks,
Jason

1 comment

Hello,


There is no ability to get server url to use it inside the build script. Please watch/vote for the feature request http://youtrack.jetbrains.net/issue/TW-7003.
Also, you can probably write a custom plugin.



Kind regards,
Marina
0

Please sign in to leave a comment.