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

Bamboo REST API - GET releases

Steven Rankin March 5, 2016

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
Kalle Sirkesalo March 5, 2016

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 

0 votes
Steven Rankin March 5, 2016

Thanks this works great.

TAGS
AUG Leaders

Atlassian Community Events