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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.