简体   繁体   English

在特定时间完成所有相关工作后,以詹金斯计划工作

[英]Schedule job in jenkins after all dependent jobs are complete at a particular time

I have a requirement where multiple dev builds are present and post their completion, I need to trigger my pipeline deployment job. 我有一个存在多个开发版本并完成发布的要求,我需要触发我的管道部署工作。

So two important requirements: All streams' separate jobs should be complete. 因此有两个重要要求:所有流的单独作业均应完成。 Build should run port a specific time even if all builds are complete say after 9PM. 即使所有构建都完成了,例如9PM之后,构建也应该在特定时间运行端口。

Please suggest and help on how I can proceed with this. 请提出建议并提供帮助,以解决该问题。 I know i will need to play with Build triggers section in the configuration of my deployment build. 我知道我将需要在部署构建的配置中使用“构建触发器”部分。 but unsure on how I can write my shell script and how i can add here to achieve my requirements. 但不确定如何编写外壳脚本以及如何在此处添加以实现要求。

Use jenkins pipelines. 使用詹金斯管道。 It is a bit of investment - but much more flexible and maintanable. 这是一笔投资-但更加灵活和可维护。 (plus you get everything as code, instead of wizards) (另外,您将所有内容都获取为代码,而不是向导)

In the pipeline you could implement your build operations as parallel stages, and afterwards with the waitUntil keyword you can wait until the current time is X hours. 在管道中,您可以将构建操作实现为并行阶段,然后使用waitUntil关键字可以等到当前时间为X个小时。

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

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