触发上游下游工程项目之前,建立 [英] Triggering upstream project builds before downstream project

查看:602
本文介绍了触发上游下游工程项目之前,建立的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下的项目布局:


  • WAR A计划

    • 上游项目

      • 依赖乙

      • 依赖ç

      • 依赖ð

      我在寻找安装一个这样每次我想触发一个构建,它会先建B,C和D.如果任建立了B,C或D失败,则A的构建应该会失败,以及

      I'm looking to setup A so that every time I want to trigger a build, it will first build B, C, and D. If either builds for B, C, or D fail then A's build should fail as well.

      这似乎是一个常见的​​构建情况,但是我不知道如何实现它。主要有以下几种选择,但他们似乎并不具备正确的关系:

      It seems like a common build case, but I'm not sure how to accomplish it. There are the following options but they don't seem to have the right relationship:


      • 构建触发器 - 构建其他项目的构建后,

        • 将建设一些上游项目后,目前的项目,但我需要从这个项目中控制生成,因为我正在做一个WAR部署。我只是想总是先建立依赖关系。


        • 这会不会一个接一个建项目,但是这是倒退为我想做的事情。

        有没有哈德森构建配置(或通过插件),将工作对我来说?

        Is there a build configuration in Hudson (or through a plugin) that will work for me?

        推荐答案

        这是最近来到了哈德森的邮件列表上。没有此类型哈德森构建配置没有直接的支持。

        This came up on the Hudson mailing list very recently. There is no direct support for this type of build configuration in Hudson.

        请参阅此线程:
        <一href=\"http://jenkins.361315.n4.nabble.com/On-demand-build-dependency-handling-simple-2-job-build-td624395.html\" rel=\"nofollow\">http://jenkins.361315.n4.nabble.com/On-demand-build-dependency-handling-simple-2-job-build-td624395.html

        您可以使用加入插件来创建一个构建+部署的工作。这将有B,C和D的下游项目,然后'A'将成为加盟的目标。

        You could use the Join plugin to create a 'build+deploy' job. It would have B,C and D as downstream projects, and then 'A' would become the join target.

        因此​​B C和D将需要成功完成。如果是这样,那么A的平原部署工作将展开。如果有任何错误,A将无法启动。这实际上是一样的,你在问什么。

        Thus B C and D would need to complete successfully. If so, then the plain 'deploy' job of A would be launched. If there were any error, A would not launch. This is effectively the same as what you are asking for.

        您可以读到这里加入插件:
        http://wiki.hudson-ci.org/display/HUDSON/Join+Plugin

        You can read about the join plugin here: http://wiki.hudson-ci.org/display/HUDSON/Join+Plugin

        这篇关于触发上游下游工程项目之前,建立的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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