I want to remotely build a jenkins job using multiple parameter through restassured API jobs in java. I tried using the following link
http://localhost:8080/job/jobname/buildWithParameters?token=TOKEN&FEATURE="parameter1_value";FEATURE2=parameter2_value
but this url results in triggering a job with passing both the parameter values within a single parameter.
get("http://localhost:8080/job/jobname/buildWithParameters?token=TOKEN&FEATURE="parameter1_value";FEATURE2=parameter2_value");
This is the response json of jenkins job
The parameter defined in configuration of a Jenkins job should be a "String Parameter" in order to set them using URL. And the modified URL should be like -
http://localhost:8080/job/jobname/buildWithParameters?parameter=parameter1_value¶meter2=parameter2_value