schedule jobs via api and delay parameter not working anymore?

21 views
Skip to first unread message

roger...@gmail.com

unread,
May 23, 2018, 3:13:07 AM5/23/18
to Jenkins Users

Hi,


until very recently I was able to schedule the execution of jobs via the http api making use of the delay parameter, as described in https://stackoverflow.com/a/16573716/543321


My use case is to schedule a job to do some maintenance overnight, and I trigger it manually whenever it is needed with a frequency of ~once per month. From a python script, and using the Jenkins module, I compute the delay needed for the job to run at a specific time in the next 24h like “$ ./admin.py schedule jenkins-pipeline 04:30”.


This worked fine until today, when the job started building immediately after being queued, as if the delay parameter was ignored. I’m sure the api call was made correctly.


Anyone knows if there was any update removing this behavior?

Is there any alternative method to achieve the same goal?


Thanks!

Roger

Baptiste Mathus

unread,
May 29, 2018, 11:10:19 AM5/29/18
to jenkins...@googlegroups.com
Was the Jenkins instance updated between the two calls?

What was the version where it was working, and the current version that is not working as you expect?


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cc4c7620-91e6-4f2f-a990-08d178d12ef7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

roger...@gmail.com

unread,
May 29, 2018, 12:41:46 PM5/29/18
to Jenkins Users
Yes, there was an update between, but I cannot tell which specific versions other that I'm only getting releases from the stable channel. 

I already learned that the delay time is now in ms rather than s, and that was the problem indeed. 
My fault for updating without inspecting the changelog in detail.

Regards,




El dimarts, 29 maig de 2018 17:10:19 UTC+2, Baptiste Mathus va escriure:
Reply all
Reply to author
Forward
0 new messages