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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 votes
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
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

587 views 1 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you