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

How do you find which build is connected to a release from the Bamboo API?

Jared Petersen April 21, 2017

When you go into a release, you can see that build X is the build that the release is based off of. If you go into the variables tab, you can even get the exact key (SOMEPROJ-SOMPLAN-X).

How can you get this information from the API?

Screen Shot 2017-04-21 at 2.36.57 PM.png

1 answer

0 votes
Bruno Rosa
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 11, 2017

hey Jared, if you call the following REST endpoint in Bamboo, you'll get a list of all releases for a specific Deployment project, including the key from the build that's been associated to that release (among some other useful information):

  • http://localhost:8085/rest/api/latest/deploy/project/{deploymentProjectId}/versions

If you don't know what is your Deployment project ID, you can visit this page http://localhost:8085/deploy/viewAllDeploymentProjects.action and click the project name. This will redirect you to the Deployment project summary page. If you take a look at the URL you'll see that it contains the ID for that Deployment project, for example:

  • http://localhost:8085/deploy/viewDeploymentProjectEnvironments.action?id=1736705

Ref.: https://docs.atlassian.com/bamboo/REST/5.13.0/#d2e2208

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events