本文介绍了如何在其他项目jenkins的触发器参数化构建中配置顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个工作{A},它在POST生成操作中具有在其他项目上触发参数化的生成我设置了2个作业{B}和{C}.我想做这样的配置首先,如果A稳定,则触发B,之后触发C.但是我不想让C作为B的孩子.
I have a JOB {A} which is having trigger parameterized build on other projects in POST Build Actions I have set 2 Jobs {B} and {C}.I wanna make configuration in such that First if A is Stable then trigger B and After trigger C. But i don not want to make C as a child to B.
推荐答案
在JOB {A}中,当您运行JOB {C}时,您需要等待JOB {B}运行.例如:
In JOB {A} you need waiting while JOB {B} running, when you run JOB {C}. For example:
作业{A}
//do something
build job: "JOB {B}", quietPeriod: 0, wait: true
//"quietPeriod: 0" without pause, "wait: true" waiting until downstrem job (JOB {B}) is finished
build job: "JOB {C}", quietPeriod: 0, wait: true
这篇关于如何在其他项目jenkins的触发器参数化构建中配置顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!