Friday, September 2, 2022

[SOLVED] How to schedule a Jenkins job every hour at 20 minute

Issue

I need to schedule a Jenkins job each 20 minute for every hour meaning (eg. 00:20, 01:20, 02:20, 03:20, etc.)

What I got now is:

H * * * * is running for every hour

H/20 * * * * is running every 20 minutes (each XX:20)

What is the right Cron expression for my case?


Solution

Order is:
minute
hour
day of month
month
day of week


20 * * * *

https://man7.org/linux/man-pages/man5/crontab.5.html

Check it here https://crontab.guru/#20_*_*_*_*



Answered By - gapsf
Answer Checked By - Willingham (WPSolving Volunteer)