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

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 vote
Bruno Rosa Atlassian Team Oct 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 Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,096 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot