jenkins - Jenkins pipeline start depending on other pipeline status
问题描述
I have the following setup:
- Pipeline A: starts at 10am
- Pipeline B: starts at 12am
Now i want to add a dependency between those two pipelines. Pipeline B should only start if pipeline A ends with the status successfull. How can I achieve this?
解决方案
我知道有两种方法:
- 您可以在执行管道 B 的管道 A 的末尾添加一个阶段(请参阅构建步骤)。如果您想在 Jenkinsfile 中保留所有构建逻辑,包括项目间依赖项,请使用此方法。
- 在管道项目配置中设置 Jenkins 内部的构建触发器。请参阅管道项目配置中的“构建其他项目后构建”复选框。如果您想将依赖逻辑保留在 Jenkinsfile 之外,请使用此选项。
推荐阅读
- javascript - 使用 React-Native 进行蓝牙测试
- arduino - Arduino Modbus RTU 通过串行响应?
- python - 修复解密 fernet 令牌时的无效签名
- android - 为什么我在这段代码中实现了一个工厂,而 Dagger2 不起作用?
- r - 仅当列存在时才适用于数据框列表
- hadoop - 为什么默认的身份验证 Hadoop 是不安全的?
- php - 如何从 guzzle 请求中获取和显示图像
- c# - 使用 https 的 WCF REST 服务的“/”应用程序错误中的服务器错误
- python - 使用 np.arange 转换为 pd 数据帧的 numpy 数组
- operating-system - 父进程是否与子进程共享 cpu 寄存器