让詹金斯(哈德森)工作依赖于另一项工作 [英] Making Jenkins (Hudson) job depend on another job
问题描述
我有两个工作:
- 上传
- 启动实例
我想使 Launch-instance 依赖于另一个,因此触发 Launch-instance 会自动导致 Upload 首先运行.
我可以使用内置的Jenkins功能或插件来实现吗?
请注意,我不不希望上传始终触发启动实例,这就是在构建其他项目之后进行构建" 启动实例上的选项将起作用.我想要的是类似于depends
属性在蚂蚁中的工作方式 .
您是否尝试过参数化的触发插件?
您可以将其用作构建步骤,并选中阻止,直到触发的项目完成其构建"复选框.那应该正是您要寻找的. p>
I have two jobs:
- Upload
- Launch-instance
I want to make Launch-instance dependent on the other one, so that triggering Launch-instance automatically causes Upload to be run first.
Can I achieve this using built-in Jenkins features or with a plugin?
Note that I do not want Upload to always trigger Launch-instance, which is what the "Build after other projects are built" option on Launch-instance would do. What I want is more analogous to how depends
attribute works in Ant.
Have you tried the Parametrized Trigger Plugin?
You can use it as a build step, and mark the checkbox for "Block until the triggered projects finish their builds". That should be exactly what you are looking for.
这篇关于让詹金斯(哈德森)工作依赖于另一项工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!