前言:
jenkins中有多种触发器可用,可以方便的控制构建的启动
这里简单介绍下项目后构建的配置方法
1. 解释:
Build after other projects are built
Set up a trigger so that when some other projects finish building, a new build is scheduled for this project. This is convenient for running an extensive test after a build is complete, for example. This configuration complements the "Build other projects" section in the "Post-build Actions" of an upstream project, but is preferable when you want to configure the downstream project.
设置一个触发器,当其他项目完成构建后,会为该项目安排一个新的构建。例如,这对于在构建完成后运行全面测试非常方便。
此配置与上游项目的“构建后操作”部分中的“构建其他项目”相辅相成,但在需要配置下游项目时更为优选。
2. 配置项目后构建的触发器的方法
方法 1: 使用 Upstream/Downstream 配置
-
设置触发关系:
- 在目标