jenkins: pass multiple "Extended Choice Parameter" values using a URL -


one of parameters in jenkins build extended choice parameter submitted selection of comma separated values when invoking build build webpage.

however, need invoke build using wget + url.

so, in format:

wget "${jenkins_url}/job/buildname/buildwithparameters?ecp_list=blah1&token=token" 

say extended choice parameter ecp_list has possible values: blah1, blah2, blah3, blah4.

if invoke, example:

wget "${jenkins_url}/job/buildname/buildwithparameters?ecp_list=blah3&token=token" 

the build starts fine value blah3 epc_list parameter.

however, if wish invoke 2 or more values, passes blank value parameter.

i've tried separating values using various things, spaces, encoded comma, semi-colon. haven't had luck finding answer here or on google either.

hopefully can me out.

thanks!

including url in single quotes work:

wget '${jenkins_url}/job/buildname/buildwithparameters?ecp_list=blah3&token=token' 

similarly if want run curl through jenkins api curl run:

curl -x post 'http://api:xxxxxxxxxxxxxxxxxxxxxxx@jenkins.yourserver.com/job/buildname/buildwithparameters?parameter2=blah&parameter2=blahblah' 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -