让詹金斯(哈德森)工作依赖于另一项工作 [英] Making Jenkins (Hudson) job depend on another job

查看:128
本文介绍了让詹金斯(哈德森)工作依赖于另一项工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个工作:

  1. 上传
  2. 启动实例

我想使 Launch-instance 依赖于另一个,因此触发 Launch-instance 会自动导致 Upload 首先运行.

我可以使用内置的Jenkins功能或插件来实现吗?

请注意,我不希望上传始终触发启动实例,这就是在构建其他项目之后进行构建" 启动实例上的选项将起作用.我想要的是类似于depends属性在蚂蚁中的工作方式 .

解决方案

您是否尝试过参数化的触发插件?

您可以将其用作构建步骤,并选中阻止,直到触发的项目完成其构建"复选框.那应该正是您要寻找的.

I have two jobs:

  1. Upload
  2. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆