Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I get the build number of an in-progress build with Bamboo REST API?

Andres Delfino May 8, 2019

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?

2 answers

1 accepted

1 vote
Answer accepted
Jimmy Seddon
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 8, 2019

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

Andres Delfino May 8, 2019

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.

1 vote
amushead
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 19, 2023

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
},

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events