Hi
I am using the below command to trigger a cutomeized plan where it is running fine with only one variable
curl -XPOST -u username:passwd https://bamboo-starterkit.abc.com/rest/api/latest/queue/BUILDKEY?bamboo.variable.var_name1=etcetc
But job is not sucessfull when there are more variables. which we are giving form curl:
curl -XPOST -u username:passwd https://bamboo-starterkit.abc.com/rest/api/latest/queue/BUILDKEY?bamboo.variable.var_name1=var1&bamboo.variable.var_name2=var2-v
Please help me second command where i am going wrong.
Thanks
Srinivas
Hi @Srinivas Reddy ,
Could you please place the URL between quotes and give another try, e.g:
# replace {USERNAME} with a user that can run build
# replace {PASSWORD} with {USERNAME}'s password
# replace {PLAN_KEY} with plan you would like to run build from, e.g PROJ-PLAN
curl -k -u {USERNAME}:{PASSWORD} \
-X POST "https://bamboo-starterkit.abc.com/rest/api/latest/queue/{PLAN_KEY}?bamboo.variable.var_name1=var1&bamboo.variable.var_name2=var2-v"
As a result, you would find:
Kind regards,
Rafael
Thanks Rafael
Already found out solution before. What you mentioned is right it work's perfectly.
Thanks
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.