[英]Jenkins - How to schedule job every period of days?
I tried to schedule a job run every 28 days but still not have solution yet. 我试图安排每28天运行一次作业,但还没有解决方案。 Please help!
请帮忙! Thank!
谢谢!
As the documentation shows, using */X
executes in intervals of X
. 如文档所示,使用
*/X
的间隔为X
So, applying this to the "day of month" field, under "Build periodically", you could use the following to build at some consistent point in time once every 28 days: 因此,将其应用于“定期构建”下的“每月”字段,您可以使用以下内容每28天在某个一致的时间点进行构建:
H H */28 * 2
As an example, the 2
at the end signifies that the build should run on a Tuesday. 例如,末尾的
2
表示构建应在星期二运行。 Otherwise, it will probably build on whatever day of the week the current month started with. 否则,它可能会建立在当前月份开始的一周的任何一天。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.