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
Posted Tuesday in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

175 views 4 1
Join discussion

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