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

Bamboo REST API - GET releases

For a given environment id, I want to GET all the deployment history of that environment.  All the releases, dates etc.

 

I can call:  

server/builds/rest/api/latest/deploy/environment/138316778/results

using the DEV ID and it pulls back the latest release info which is good, but how can I get all the release history for a given enviroment id?

 

Thanks

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted

Hello,

this might help a bit:

?expand=results[0:N].result — Lists the last Nbuilds for the plans on the Bamboo server with build result details expanded, in descending order (by completion time).

It's not perfect. but gets you started. 
So the command could be:  

server/builds/rest/api/latest/deploy/environment/138316778/results?expand=results[0:100000].result


Reference:
https://developer.atlassian.com/bamboodev/rest-apis/bamboo-rest-resources 

Thanks this works great.

TAGS

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