0

我有一个管道,我们称之为 c。如果管道 a 或管道 b 完成,我希望 c 被触发。请看下面我的尝试。任何人都知道为什么它不起作用?

resources:
  pipelines:
    - pipeline: a
      source: ci-a
      trigger:
        branches:
          - '*'
    - pipeline: ci-b
      source: b
      trigger:
        branches:
          - '*'
4

1 回答 1

0

应该像这样工作

resources:
  pipelines: 
  - pipeline:  Trigger-A #This is an alias 
    source:  ci-a #name of pipeline that you want to be triggering this pipeline
    trigger:
      branches: #Branches to include
      - *
  - pipeline:  Trigger-B
    source:  ci-b
    trigger:
      branches: 
      - *
于 2021-04-19T12:53:16.273 回答