将cron作业配置为在Jenkins上每15分钟运行一次 [英] Configure cron job to run every 15 minutes on Jenkins
本文介绍了将cron作业配置为在Jenkins上每15分钟运行一次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Jenkins上每15分钟执行一次cron工作?
How can I run a cron job every 15 mins on Jenkins?
这是我试过的:
在Jenkins我有一个工作设置为运行每15分钟使用cron语法:
On Jenkins I have a job set to run every 15 mins using this cron syntax :
14 * * * *
但是作业每小时执行一次,而不是15分钟。
But the job executes every hour instead of 15 mins.
我收到关于cron语法格式的警告:
I'm receiving a warning about the format of the cron syntax :
Spread load evenly by using ‘H * * * *’ rather than ‘14 * * * *’
推荐答案
您的语法有点错误。说:
Your syntax is slightly wrong. Say:
*/15 * * * * command
|
|--> `*/15` would imply every 15 minutes.
*
表示cron表达式匹配所有字段的值。
*
indicates that the cron expression matches for all values of the field.
/
描述范围的增量。
这篇关于将cron作业配置为在Jenkins上每15分钟运行一次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文