Jenkins作业时间表

z31licg0  于 12个月前  发布在  Jenkins
关注(0)|答案(1)|浏览(99)

我期待着安排一个工作运行在每个月的第三个星期日,但还没有找到一个解决方案。
希望有人能给予我一个关于Jenkins Cron的建议。
我尝试过这样的事情:

0 25 0 ? 1/1 7#3 *

但似乎不适合Jenkins夫妇。

3hvapo4f

3hvapo4f1#

您必须设置与cron格式的时间表,该字段遵循cron的语法(有微小的差异)。具体来说,每行由5个字段组成,由TAB或空格分隔:

MINUTE HOUR DOM MONTH DOW

认为:

MINUTE  Minutes within the hour (0–59)
HOUR    The hour of the day (0–23)
DOM The day of the month (1–31)
MONTH   The month (1–12)
DOW The day of the week (0–7) where 0 and 7 are Sunday.

要为一个字段指定多个值,可以使用以下运算符。按照先后顺序

* specifies all valid values
M-N specifies a range of values
M-N/X or */X steps by intervals of X through the specified range or whole valid range
A,B,...,Z enumerates multiple values

相关问题