I am writing a Notification plugin and I wish to send, as part of the outgoing info, the URL of the build page that is running.
All the methods in a Notificator give an SRunningBuild. So to be specific, how would I construct this URL given an SRunningBuild?
I would probably be able to construct the URL but I don't know how to get the server name (localhost:8111, somethingelse:8080). I can figure out the buildId and the buildTypeId from the sRunningBuild properties (sRunningBuild.getBuildNumber()). But the base URL eludes me!
I see that a getRootURL method exists in SBuildServer. But I don't know how to get to SBuildServer from the Notificator.
Any ideas would be appreciated.