Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bamboo rest API to set plan branch variables

rohit
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 14, 2019

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

Atlassian Community Events