Get Release variables via Bamboo REST api

Is there a way to get a specific release version's deployment variables?

Trying to get the variables shown in the UI (for example):

2 answers

Also found this:

But it fails with:

"errors": ["Please provide a version to find variables in"]

...Even though the only required argument is the deploymentProjectId, which I've provided.

Found this:

But it does not return all of the variables. It seems to only return global variables and basic build plan variables:

"key": "buildNumber",

"key": "buildResultKey",

"key": "planKey",

"key": "planName",

"key": "shortPlanKey",

"key": "shortPlanName",

I'm looking for the others like...



From the Deployment page:

"These variables are available to use when deploying this release. Variables are copied from the build result and generated by Bamboo on release creation."

So use the buildResultKey from this call and make another API call that.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Monday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

314 views 0 6
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