0

I have a Jenkins job which I would like to run from (01:00) 1 AM till (23:00) 11PM but skip midnight (00:00) and resume again from (01:00) on a daily basis. The thread How to schedule Jenkins job every Hour for the next 12 hours had this example H 9-21 * * * which i have changed to H 1-23 * * * to cater for my example.

Am I on the right track perhaps with using H 1-23 * * * ??

Community
  • 1
  • 1
Sabz Mbatha
  • 201
  • 1
  • 2
  • 4

1 Answers1

2

Yes, that should work. There is a cron tester you can look that will show you the cron version of that, and for Jenkins you just replace the 0 with the H.

http://cron.schlitt.info/index.php?cron=0+1-23+*+*+*+&iterations=50&test=Test

Olivier Dagenais
  • 1,482
  • 2
  • 18
  • 20