本文介绍了如果第一个项目构建成功,则如何在jekins中配置作业,然后触发另一个项目,以此类推.工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果第一个项目构建成功,我想在jekins中触发项目,然后触发另一个项目,依此类推..怎么做.我拥有project1,project2和project3,project4,project5,依此类推.在这里,我正在配置多配置项目"作业.

I want to trigger project in jekins if first project is build successful then trigger another project and so on.. how can do it. I hava project1 , project2, and project3, project4, project5 so on. here I am configuring "Multi-configuration project" job.

对于exp:-project1->成功,然后触发project2->成功,然后触发project3

for exp:- project1->success then trigger project2->success then trigger project3

如果任何阶段失败,则不会触发其他项目.这是多配置项目"作业,因为这是单个作业,因此我会远程触发多个从站.

if any stage failed then doesn't trigger other project.This is "Multi-configuration project" job, because this single job, I am trigger on multiple slaves remotely.

推荐答案

即使使用多配置项目",您也应该可以设置构建后操作在其他项目上触发参数化构建".然后,您可以指定条件以定义何时应构建此项目,并添加参数,包括在同一节点上构建".

Even with "Multi-configuration project" you should be able to set a post-build action "Trigger parameterized build on other projects". Then you can specify condition which will define when this project should be build, and add parameters, including "build on the same node".

这篇关于如果第一个项目构建成功,则如何在jekins中配置作业,然后触发另一个项目,以此类推.工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 21:03