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

Including the URL in single quotes work:

wget '${JENKINS_URL}/job/buildname/buildWithParameters?ECP_LIST=blah3&token=token'

Similarly if you want to run a curl through your Jenkins API with curl you would run:

curl -X POST 'http://api:[email protected]/job/BUILDNAME/buildWithParameters?parameter2=blah&parameter2=blahblah'

I did solve it by selecting ECP_LIST multiple times:

wget "${JENKINS_URL}/job/buildname/buildWithParameters?ECP_LIST=blah1&ECP_LIST=blah2&ECP_LIST=blah3&token=token"

Will result in:

ECP_LIST=blah1,blah2,blah3

I hope that works for you.

Tags:

Jenkins