Reputation: 388
The instant messaging plugin is capable of taking an IM message like, "build XYZ in 10s" and setting the job to run in 10 seconds. It does this via a java API to schedule the job[0].
I'd like to know if there is some magic parameter I can pass on the REST API[1] that will allow me to "delay" a job in the same manner?
thanks.
[1] - https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API
Upvotes: 6
Views: 3885
Reputation: 6513
GET the following URL:
http://jenkins/job/jobname/build?delay=4000sec
This example will result in a job being started after 4000 seconds.
This works with the buildWithParameters
URL for parameterized jobs as well.
Upvotes: 11