手动触发的构建和计时器触发的构建的构建后触发器不同
简而言之,我在 Jenkins 中有一个用于检查和构建代码的“构建发布”(BR) 项目,以及一个用于测试此代码的“全面测试”(FBT) 项目。
晚上,BR项目由定时器触发,我需要BR项目在完成后触发FBT项目。但是,如果我手动触发 BR 项目,我不希望随后触发 FBT 项目,因为这会从构建服务器占用太多资源。
有没有办法在詹金斯中实现这一目标?
Simplified, I have a "build release" (BR) project in Jenkins that checks out and builds code, and a "full-blown test" (FBT) project that tests this code.
At night, a BR project is triggered by a timer, and I need the BR project to trigger the FBT project when it's done. However, if I trigger a BR project manually, I don't want the FBT project to be triggered afterwards, because that takes too much resources from the build server.
Is there a way to achieve this in Jenkins?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决此问题的几种方法:
解决方案 1
当您手动触发 BR 作业时,您需要记住取消选中 TriggerFBT 参数。由于默认勾选了 TriggerFBT,因此当通过定时器触发 BR 项目时,最终会触发 FBT 项目。
解决方案 2
Couple ways to solve this problem:
Solution 1
When you manually trigger the BR job, you'll need to remember to uncheck the TriggerFBT parameter. Because TriggerFBT is checked by default, when the BR project is triggered via timer, the FBT project will eventually get triggered.
Solution 2