Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bamboo rest API to set plan branch variables

Edited

Hi,

 

I need to create a plan branch with setting some plan branch variables.

I have only get this API which gives me to run a plan branch with override a variable.

curl -s -X POST --user ${USER} 'http://bamboo:8080/rest/api/latest/queue/PROJ-PLANNAME?os_authType=basic?bamboo.variable.MY_PLAN_VARIABLE=300'

 

I don't want to run the plan branch directly, i just want to create it and set my plan branch variables which have some different variable value from plan variables.

 

Please suggest.

1 answer

0 votes
Foong Atlassian Team Feb 18, 2019

Feature request https://jira.atlassian.com/browse/BAM-17084

Use the following workaround:

  1. Use Script task to check Bamboo Variable ${bamboo.planRepository.branchName} and create a file with specific plan branch value
  2. Use Inject Bamboo variable task to read this file and create the variable

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

167 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you