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
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?
-
Hi @antony-booth_1029,
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$BuildMasterIdfunction if you need to get the BuildId directly.Hope this helps!
Thanks,
Rich
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login