首页 > 解决方案 > 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

标签: jenkins

解决方案


在这里,您有 cron 的文档。

因此,如果您想在每天 13:00 开始您的工作,您必须使用:

0 13 * * *

但似乎有一个限制。当你定义它时

0 13 * * * % Environment=DV46
0 13 * * * % Environment=MT22

只有第一个会被执行。

所以我建议你在 13:01 开始第二个:

0 13 * * * % Environment=DV46
1 13 * * * % Environment=MT22

推荐阅读