0

I want to schedule Jenkins jobs at three specific times (viz. 5 AM, 1 PM, 5 PM). What is the expression to do that?

Regards Manish Mehra

IT-Sheriff
  • 154
  • 1
  • 2
  • 19
  • 2
    may be this can help http://stackoverflow.com/questions/7000251/how-schedule-build-in-jenkins – Yuri G. Jun 24 '15 at 06:24
  • 1
    Yuri gave you the good answer, you should use: H 5,13,17 * * * to schedule your job at 5am, 1pm and 5pm – Bruno Lavit Jun 24 '15 at 06:59
  • Thanks Yuri and Bruno. If I wanted to schedule it at 5:30, 13:30 and 17:30, how should I have done that? I tried doing H 5:30,13:30,17:30 * * *. That gave me error. – IT-Sheriff Jun 24 '15 at 07:06

2 Answers2

1

you can use expression like : 0 5,13,17 * * *
Please refer to Cron Wiki for better understanding.

Chandra Sekhar
  • 16,256
  • 10
  • 67
  • 90
1

Use below expression if you want to schedule it at 5:30, 13:30 and 17:30

30 5,13,17 * * *

Fayzan
  • 141
  • 1
  • 4
  • 15