I am trying to trigger the Jenkins build with the curl command with the argument passed as "users". I am trying to send the values externally. But every time I run the build it picks up only the first value declared in the choice parameters whatever may be the value which I passed using the curl command line. So is anyone suggest the workaround on this.
Eg. My Jenkins job has a choice parameter named users with 4 values 1,2,3,4 etc.
When I trigger build with curl -
curl -v -X POST http://localhost:9999/job/gatling/buildWithParameters --data token=11ceefa59d2017b21b3d637ece05742fd5 --user admin:admin --data-urlencode json= '{"users":"3", "duration":"10", "feature":"asset", "load_simulation":"AtOnceUserSimulation"}'
I am passing the value as "users":"3"
but value gets passed as 1 in the build.
Can anyone suggest a solution for this?