MINUTE HOUR DOM MONTH DOW
MINUTE | Minutes within the hour (0-59) |
HOUR | The hour of the day (0-23) |
DOM | The day of the month (1-31) |
MONTH | The month (1-12) |
DOW | The day of the week (0-7) where 0 and 7 are Sunday. |
To specify multiple values for one field, the following operators are available. In the order of precedence,
To allow periodically scheduled tasks to produce even load on the system, the 'H' token can be used. For example, people often use '0 0 * * *' for a daily job, but this ends up causing a large spike in midnight. In contrast, doing 'H H * * *' would still execute a job once a day, but the actual time of the day this gets executed will be spread over by Jenkins.
The 'H' token can be used with a range. For example, 'H H(0-7) * * *' means some time between midnight to 7:59am.
The 'H' token can be thought of as a random value over a range, but it actually is a hash of the job name, not a random function, so that the value remains stable for any given project.
Empty lines and lines that start with '#' will be ignored as comments.
In addition, '@yearly', '@annually', '@monthly', '@weekly', '@daily', '@midnight', and '@hourly' are supported.
Examples |
# every minute * * * * * # every 5 mins past the hour 5 * * * * |