Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Bamboo rest API to set plan branch variables




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

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
Community showcase
Published in Bamboo

Bamboo 9.0 is now available

Hey there, Data Center community! I'm Martyna Wojtas and I am the Product Manager for Bamboo Data Center. I’m excited to share that Bamboo 9.0 is now available. We purpose-built this platform to help...

313 views 0 7
Read article

Atlassian Community Events