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

This widget could not be displayed.
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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published 6 hours ago in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

38 views 0 8
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