简体   繁体   English

需要帮助来安排詹金斯的工作

[英]Need help to schedule jobs in Jenkins

I have scheduled my job in jenkins as "0 0-12/3 * * 1-3". 我在詹金斯的工作安排为“ 0 0-12 / 3 * * 1-3”。 This will run monday to wednesday from 12am to 12pm for every 3 hours. 每周星期一至星期三的凌晨12点至下午12点每3小时运行一次。

My question is, during the above interval if any build execution is PASS, then it should skip remaining scheduled interval for that week!!! 我的问题是,在上述间隔中,如果任何构建执行为PASS,则应跳过该周的剩余预定间隔!

How to do this? 这个怎么做? can anyone Help me? 谁能帮我?

You could try working the other way: Schedule your job to run only once per week. 您可以尝试以其他方式工作:将您的工作安排为每周仅运行一次。 Then add either the Naginator or Periodic Reincarnation plugin to your Jenkins server to restart a failed build. 然后将Naginator或Periodic Reincarnation插件添加到您的Jenkins服务器,以重新启动失败的构建。

If that should be more liberal (as in: don't always start the job on the first possible day of the week, but rather check if a week has elapsed since the last run), you could try the following: 如果那应该更加自由(例如:不要总是在一周的第一天开始工作,而是要检查自上次运行以来是否已经过去了一周),则可以尝试以下操作:

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

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