how can I get the port & url of Teamcity server?
Answered
how can I get the port & url of Teamcity server?
my class extends the ServerExtension class.
I tried to use SBuildServer.getRootUrl() but it returns only basic url without port..
Please sign in to leave a comment.
Hi,
SBuildServer.getRootUrl() returns url set on Administration -> Global Settings -> Server URL.
If you need url which is used in web request to your controller (may be differ, e.g. 'http://localhost', etc), use jetbrains.buildServer.web.util.WebUtil#getRootUrl