fred august
fred august

Reputation: 1107

How to run a Jenkins job every X minutes between the hours of Y and K?

For instance, I would like to run a Jenkins build every 10 minutes between 1AM and midnight. I thought maybe

H/10 H(1-23) * * *

would work, but that doesn't seem to be the case.

Upvotes: 1

Views: 2648

Answers (1)

gareth_bowles
gareth_bowles

Reputation: 21150

If you want the build to run every 10 minutes between precisely 1AM and midnight, you should use

*/10 (1-23) * * *

The H randomizes the entry, so the minute value in your schedule could be anything from 0 to 9, 10 to 19, etc. I don't think the H has any effect on a range value such as (1-23).

Upvotes: 1

Related Questions