Bamboo rest API to set plan branch variables

rohit February 14, 2019



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
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 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
AUG Leaders

Atlassian Community Events