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

2 comments
Comment actions Permalink

You can use buildNumber instead of buildId, just replace buildId=... with buildNumber=.. in the url.

0
Comment actions Permalink

Thanks Pavel, that worked perfectly.

0

Please sign in to leave a comment.