Azure DevOps 有一项功能(在此处记录),可在从另一个管道完成时触发管道。这在测试组织中工作正常,但在我们的主要组织中不起作用。在组织、项目、存储库甚至分支级别上可能会有一些东西,但我目前被困住了,任何帮助将不胜感激!
Pipeline B当管道Pipeline A完成时管道应该自动运行。
文件pipeline-a.yaml为Pipeline A:
pool:
vmImage: 'ubuntu-latest'
steps:
- script: echo Hello, world!
displayName: 'Do something'
Run Code Online (Sandbox Code Playgroud)
文件pipeline-b.yaml为Pipeline B:
trigger: none
pool:
vmImage: 'ubuntu-latest'
resources:
pipelines:
- pipeline: pipeline-a
source: 'Pipeline A'
branch: master
trigger:
branches:
- master
steps:
- script: echo Hello, world!
displayName: 'Do something'
Run Code Online (Sandbox Code Playgroud)
在我的测试组织中,上述管道运行得非常好。这意味着Pipeline A在提交时运行,并在完成后Pipeline B自动运行。
然而在我们的生产组织中,Pipeline B不会自动运行。