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

How to pass multiple variables to run a bamboo plan using REST api call?

Kamal May 3, 2017

I know how to call run a bamboo plan using a REST api call with one parameter/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'

Can anyone please tell me how to do the same, if i have to pass multiple parameters to run a bamboo plan.

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

1 answer

1 vote
Cristiano Mariano
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 5, 2017

Hi Kamal! How are you doing?

In order to pass more than one variable, you have to separate them using a & signal.

Hope this helps!

Thanks,

Cristiano

Qualys DevOps October 15, 2018

I tried this but aint help 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events