Reputation: 77
I need to schedule a jenkins job to run every 90 minutes I tried the following but it did not work */45 */1 * * * But the job ran ever hour and then at every 45 minutes like
Sep 15, 2016 1:46:09 AM
Sep 15, 2016 1:01:09 AM
Sep 15, 2016 12:46:09 AM
Sep 15, 2016 12:01:09 AM
Sep 14, 2016 11:46:09 PM
Sep 14,2016 11:01:09 PM
and so on
Can any one please suggest me how this is done
Upvotes: 0
Views: 1432
Reputation: 143
In Jenkins, use this in "Build periodically" to run for every 90 mins H/30 H/2 * * *
Upvotes: 0
Reputation: 811
You may have to specify two cron jobs for it in the scheduler like this in the same jenkins job - very similar to what one would do for a normal cron in Linux
0 0,3,6,9,12,15,18,21 * * * /path/to/script 45 1,4,7,10,13,16,19,22 * * * /path/to/script
Upvotes: 1