How to schedule jobs in Jenkins every 3 hours

11,235

Doing this should work. 0 9-21/3 * * *

But to avoid the errors & then the warning about "spreading the load evenly" use this. H 09-12/3 * * *

Share:
11,235
Fahad Fazil
Author by

Fahad Fazil

Java at the core with Spring

Updated on June 04, 2022

Comments

  • Fahad Fazil
    Fahad Fazil almost 2 years

    How can I schedule a Jenkins job to run every 3 hours between 0900 hours and 2100 hours every day?

    I tried:

    0 9-21/3 * *
    

    but it gave me an error:

    Invalid input: "0 9-21/3 * *": line 1:13: expecting space, found 'null'"