Azure管道在上一个管道完成后不会触发

hgc7kmma  于 2023-06-24  发布在  其他
关注(0)|答案(1)|浏览(124)

在Azure DevOps中,我有两个管道,比如管道A和管道B。管道A计划每天运行。成功完成管道A后,我想触发管道B。
我已经添加了一个代码片段,它应该在管道A成功完成时触发管道B。但它不起作用。我该怎么弥补?

trigger: none

resources:
  pipelines:
  - pipeline: AliasA
    source: Pipeline A  # Name of the pipeline that triggers this pipeline
    trigger: 
      branches:
      - branch_prod  # Branches that will trigger this pipeline
eit6fx6z

eit6fx6z1#

试试这个:

resources:
  pipelines:
  - pipeline: AliasA # Name of the pipeline resource.
    source: PipelineA # The name of the pipeline referenced by this pipeline resource.
    project: Project # Required only if the source pipeline is in another project
    trigger: true # Run xx pipeline when any run of yyy completes

相关问题