How to schedule a build in Jenkins?

Please read the other answers and comments, there’s a lot more information stated and nuances described (hash functions?) that I did not know when I answered this question. According to Jenkins’ own help (the “?” button) for the schedule task, 5 fields are specified: This field follows the syntax of cron (with minor differences). Specifically, … Read more

Significance of question mark in Java cron

According to the Quartz CronTrigger tutorial (Quartz is used by www.cronmaker.com, referenced above), the ? wildcard is only used in the day of month and day of week fields: ? (“no specific value”) – useful when you need to specify something in one of the two fields in which the character is allowed, but not … Read more

Specifying “all odd values” in crontab?

Depending on your version of cron, you should be able to do (for hours, say): 1-23/2 Going by the EXTENSIONS section in the crontab(5) manpage: Ranges can include “steps”, so “1-9/2” is the same as “1,3,5,7,9”. For a more portable solution, I suspect you just have to use the simple list: 1,3,5,7,9,11,13,15,17,19,21,23 But it might … Read more