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

This widget could not be displayed.

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.

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 6 hours ago in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

13 views 0 0
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