azure-devops - 在多个其他管道全部完成后触发 Azure Pipeline 构建

标签 azure-devops azure-pipelines azure-pipelines-yaml

我知道您可以在另一个管道完成时触发一个管道。例如。

resources:
  pipelines:
    - pipeline: A
      source: A
      trigger:
        branches:
          include:
            - master

但是如果我有多个管道并且我想等待所有管道完成后再触发怎么办。这可能吗?

resources:
  pipelines:
    - pipeline: A
      source: A
      trigger:
        branches:
          include:
            - master
    - pipeline: B
      source: B
      trigger:
        branches:
          include:
            - master

我的印象是以上会触发 A 或 B 而不是 A 和 B

最佳答案

您的印象是正确的。这不可能在 YAML 中实现您想要的。为任何流线型触发器运行构建。您可以尝试通过调用实际保持触发器状态的外部服务来找到解决方法,并在特定条件下运行另一个管道,并且在某种程度上它类似于发布管道中的门。

关于azure-devops - 在多个其他管道全部完成后触发 Azure Pipeline 构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62274203/

相关文章:

.net-core - .Net Core 3.0 Preview 8 项目 (NU1202) 上的管道 Nuget 还原失败

azure-devops - 如何在 Azure Devops 中发布对项目成员安全的 HTML 报告?

azure - Azure Pipelines 中的 secret 变量

azure-devops - Azure DevOps 上的触发问题 : Some recent issues detected related to pipeline trigger

git - 在 Azure Devops 中,有没有办法从单个构建定义的多个存储库中获取源代码?

azure-devops - 将 secureObject 数组作为 VSTS 变量传递

azure - 无法设置到 Azure Web App 的部署 [AADSTS700027 : Client assertion contains an invalid signature]

发布管道中的 Azure DevOps 日志记录命令

azure - 了解 Azure 发布管道

Azure DevOps 条件字符串变量