Jenkins-job之间依赖关系配置
2018-06-30 本文已影响10人
小喜_ww
使用场景:
想要在某APP打新包之后,立即执行自动化测试的job来验证该新包。

1、配置上游依赖
构建触发器-配置如下信息:
这样我们执行A项目构建,紧接着B项目也会构建。选择【Build after other projects are built】
【Project to watch】: 依赖的项目名称
【Trigger only if build is stable】:只有在A项目构建文档后进行构建,过滤条件


2、配置下游依赖
现在把上面的B job的配置删除了,我们在A中配置它的下游。
构建后操作-配置如下信息:
这样我们执行A项目构建,紧接着B项目也会构建。选择【Build other projects】
【Project to watch】: 依赖的项目名称
【Trigger only if build is stable】:过滤条件


以上,对你有帮助的话,请点赞吧❤️~~