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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
4,553,550
Community Members
 
Community Events
184
Community Groups

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

Atlassian Community Events