azure - 如何在第一个管道上的阶段完成后运行第二个 azure 管道

标签 azure azure-devops azure-pipelines

如果我的主管道上完成了一个阶段,我想运行另一条管道。我尝试用阶段过滤器来做到这一点,但它不起作用。我已经按照这个教程https://learn.microsoft.com/en-us/azure/devops/pipelines/process/pipeline-triggers?view=azure-devops进行操作。还有什么事情需要做吗? stage filters code implementation

最佳答案

管道是您为要在 YAML 文件中引用/使用的管道指定的自定义名称。 是在 Azure DevOps 中创建的实际管道的名称。如果您仔细阅读MS documentation例如,YAML 触发器在 app-ci 管道中定义,以便每次构建新版本的 security-lib-ci 时都能自动运行。

示例:我想在每次构建管道 build-pipeline-CI 时自动运行我的release-pipeline-CD。

resources:
pipelines:
 - pipeline: CI
   source: 'build-pipeline-CI'
   trigger: true

关于azure - 如何在第一个管道上的阶段完成后运行第二个 azure 管道,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69617241/

相关文章:

azure - 为什么我们将 Azure 存储帐户链接到云服务?

azure - Azure 中相当于 Amazon VM 标签的是什么?

android - 无法解析类 targetSdkVersion

azure - 如何将环境特定值传递给Azure管道?

azure-devops - Azure Devops 管道 : import variables from template and declare variables in the same variables block

c# - 如果网络关闭,MessageReceiver.RegisterMessageHandler 会连续抛出异常

python - Azure Python SDK 获取使用详细信息-UsageDetailsOperations 类

Azure Artifacts 使用 vsts-npm-auth 更新凭据

azure-devops - Azure 私有(private)生成代理 : No agent could be found with the following capabilities: npm, azureps

Azure Devops 无法禁用 "New service connections experience"