Is the buildId available to the build runner?
Hi,
I want my command line build runner to produce the URL for the results of the build e.g.
http://buildserver/viewLog.html?buildId=24223&tab=buildResultsDiv&buildTypeId=bt245
However, I cannot find how to get hold of the buildId - it doesn't seem to be available as an environment variable or system property (unlike the buildTypeId, which is available as a system property). If there any way I can get hold of this value?
Thanks
Akash
Please sign in to leave a comment.
You can use buildNumber instead of buildId, just replace buildId=... with buildNumber=.. in the url.
Thanks Pavel, that worked perfectly.