php - How to schedule a jenkins job trough url? -


i'm implementing way trigger jenkins jobs , schedule them php in site. way i'm doing "on-the-fly" trigger calling url of job parameters (i'm using build token root plugin can trigger jobs without authentication).

example below:

$data = array(   'job' => 'job name',   'token' => 'job_token',   'parameter1' => 'some parameter', );  $options = array(   'method' => 'post',   'data' => drupal_http_build_query($data),   'timeout' => 15,   'headers' => array('content-type' => 'application/x-www-form-urlencoded'), );  drupal_http_request('http://localhost:8080/buildbytoken/buildwithparameters', $options); 

i can trigger job multiple parameters need schedule build. in jenkins there option "build periodically" it's not parameter.

anyone knows way schedule job trough url way?

thanks!

you can add ?delay=300secs end of url schedule job start in 5 minutes.

note sec , secs accepted duration units.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -