I want to get the build number of a build that is running on a given plan with the Bamboo REST API.
result/<plank key>-latest returns the last finished build result so it cannot be used to get an in-progress build information :/
Does anyone know how to do this with the REST API?
Hi @Andres Delfino,
I think what you are asking for looks to be this suggestion:
https://jira.atlassian.com/browse/BAM-3471
From the looks of it there isn't anyway to grab the "In Progress" build unless you know what the build number of the in progress build is.
Sorry I can't offer any more help than that.
-James
Hi, James!
Thanks for the information. Just voted for the issue :)
I'm marking as answered as "it's not possible" does count as an answer, heh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I found a way going through the branch API, example:
Curl GET in API:
bamboo.url.com/rest/api/latest/plan/MY-PLANKEY/branch/BRANCH-NAME.json
The almost last item of the returned json is something like that:
"latestCurrentlyActive": {
"lifeCycleState": "InProgress",
"key": "PLAN-BRANCHKEY-22",
"number": 22
},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.