Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Buildmaster: Get Build Id from within a script
-
I used to be able to create a url to a release using built in variables $ReleaseNumber and $BuildNumber
Example: http://buildmaster.server.domain/applications/123/builds/build?releaseNumber=16&buildNumber=2
When I try that on version 6.2.21, I will get an error 500: The parameter "buildId" is missing.
From Buildmaster documentation, I can not determine what variable corresponds to buildid, if any.
From the API, I can't find anything to invoke that will list built in variables that include buildIdThe equivalent url now is: -
http://buildmaster.server.domain/applications/123/builds/build?buildId=678How can I build this url, without knowing the buildid?
-
Starting in version 6.2.21, we actually made a new variable function to create the URL for you. You can use the
$BuildMasterUrl(build)
function and that will generate the URL. If you are running that from within the context of a build, you will not need to specify any other parmaters. You can see more about its usage in the functions reference in BuildMaster by navigating toAdministration -> Reference Documentation section -> Functions
. We have also added a$BuildMasterId
function if you need to get the BuildId directly.Hope this helps!
Thanks,
Rich