How to schedule a Jenkins job each 15 minutes

shayms8 picture shayms8 · Aug 1, 2016 · Viewed 23.4k times · Source

I need to schedule a jenkins job each 15 minutes.

Currently i'm using the Build periodically feature but that enables me to schedule the job once in 1 hour maximum.

What i got now is:

15 * * * * is running the job HOURLY (each XX:15)

15 0 * * * is running the job DAILY on 00:15

What is the right cron-expression that will run the job every 15 minutes?

Answer

Priyanshu Shekhar picture Priyanshu Shekhar · Aug 1, 2016

To run the job at a regular interval of 15 minutes you have to write it like below:

*/15 * * * * - Will run at every 15 minutes (may be at XX:01,XX:16,XX:31 ..)

Where */15 specifies no matter whatever is Hour (H) run it at 15 every minutes.