How to get release id in bamboo

Hi,

I have a deployment project with DEV/QA env and created releases in the project. Before deploying any build, I want to check if the release is approved.

Has anyone done this. Can you throw some light on how to achieve this.

I got the REST URL to find the status of any release using

/latest/deploy/version/{id}/status

This query required id and I am unable to find the ID for my release string (eg: 1.0.0-dev ). what i understood is release id is a unqiue id created for the deployment project / env and it is stored in database.

Any help is appreciated.

 

Thanks,

Subbu

2 answers

0 votes

Hello @Subramanian Olagappan,

Open created release details at Bamboo UI and look at URL: deploy/viewDeploymentVersion.action?versionId=1440874497

There you can get release id for REST call

Hi Alex,

Thanks.. had this in mind. I was looking for a clean way to get this done.

Regards,

Subbu

What do you mean clean way?

You can call such REST calls

curl 'http://localhost:9087/bamboo/rest/api/latest/deploy/project/all' -u admin:admin -H "Accepts: application/json"

to get list of deployment projects and see what project id has each deployment project

Then

curl 'http://localhost:9087/bamboo/rest/api/latest/deploy/project/{deploymentProjectId}/versions' -u admin:admin -H "Accepts: application/json"

to get list of versions

srikanth I'm New Here Dec 27, 2017

hi Alex/Subramanian,

I have the same requirement. In my opinion, what subramanian wanted was for next release , we could have used bamboo environment variable for getting the release versionId. I am not sure whether {deploymentProjectId} gets the versionId value at runtime.

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,066 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