触发一个又一个管道,也由每次更改触发



我有两条管道。我需要B管道在A管道完成后运行,我还需要B管道通过每个测试分支的更改触发。我不确定在同一个文件(B管道(中使用资源和触发器是否正确?

trigger:
batch: true
branches:
include:
- test
resources:
pipelines:
- pipeline: A
source: A
trigger: true

测试场景,它按预期工作。如果不起作用,请尝试将管道yaml文件添加到Test分支,然后从Existing Azure Pipelines YAML file创建管道B。

trigger:
batch: true
branches:
include:
- Test
resources:
pipelines:
- pipeline: A    # Any Alias 
source: A      # The real pipeline name
project: Basic # Project name if from another project within the same org
trigger:
branches:
include:
- refs/heads/master

最新更新