简体   繁体   English

Jenkins Job的Cron表达式

[英]Cron expression for jenkins Job

I want to execute a job in Jenkins at 1.00 am on first Monday of every month. 我想在每个月的第一个星期一上午1点在詹金斯执行一份工作。

00 01 1-7 * 1 00 01 1-7 * 1

Is this correct? 这个对吗? Though i verified it using below link. 虽然我使用下面的链接验证了它。 Still not very sure. 仍然不是很确定。

test link 测试链接

You are completely correct. 你是完全正确的。 If you would like, you can remove your leading zeroes from your first two numbers like this: 如果需要,您可以像这样从前两个数字中删除前导零:

0 1 1-7 * 1 test.sh

You can read all about cron syntax here . 您可以在此处阅读有关cron语法的所有信息。 To the best of my knowledge, Jenkins uses cron style formats but simply enhances it capabilities. 就我所知,Jenkins使用cron样式格式,但只是增强了它的功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM