Unix – Configure cron job to run every 15 minutes on Jenkins

cronJenkinsunix

How can I run a cron job every 15 mins on Jenkins?

This is what I've tried :

On Jenkins I have a job set to run every 15 mins using this cron syntax :

14 * * * *

But the job executes every hour instead of 15 mins.

I'm receiving a warning about the format of the cron syntax :

Spread load evenly by using ‘H * * * *’ rather than ‘14 * * * *’

Could this be the reason why the cron job executes every hour instead of 15 mins ?

Best Answer

Your syntax is slightly wrong. Say:

*/15 * * * * command
  |
  |--> `*/15` would imply every 15 minutes.

* indicates that the cron expression matches for all values of the field.

/ describes increments of ranges.