jenkins - scheduled job problem with Parameterized Scheduler Plugin
问题描述
I need to schedule a job with parameters with the Parameterized Scheduler plugin which runs every day at 1pm I try to plan it but without success I have not found the correct cron
13 * * * * % Environment=DV46 13 * * * * % Environment=MT22
解决方案
在这里,您有 cron 的文档。
因此,如果您想在每天 13:00 开始您的工作,您必须使用:
0 13 * * *
但似乎有一个限制。当你定义它时
0 13 * * * % Environment=DV46
0 13 * * * % Environment=MT22
只有第一个会被执行。
所以我建议你在 13:01 开始第二个:
0 13 * * * % Environment=DV46
1 13 * * * % Environment=MT22
推荐阅读
- python - 如何用 Numpy 而不是 Pandas 计算满足条件的总和
- python - Python for 循环 - 我可以从循环内的条件集中跳过多次迭代吗?
- android - CollapseAppbar + Image Overlay(系统主题)
- java - Javax.swing 和 Java.awt 冲突
- c++ - C++ - 形式的变体的流/cout
> - ms-access - MS Access,更改表单的语言
- angular - 在 ngFor 循环中使用 ngModel
- javascript - CSS Flex,右对齐的第二列向左环绕,而不是在小窗口之间浮动
- azure - 如何将 Azure AD B2C 联合到 Azure AD 以保护 API?
- functional-programming - How to fix a stack overflow error in Lisp