我有两个不同的流水线A和B,并且需要在流水线A完成时触发流水线C,或者流水线B.Please A和B分别运行,因此无论哪个流水线完成,它都应该触发流水线C
我认为C流水线中的触发器应该可以工作,但它没有触发
resources:
pipelines:
- pipeline: A
source: A.source
trigger:
branches:
- master
- pipeline: B
source: B.Source
trigger:
branches:
- master发布于 2021-05-06 15:49:20
请仔细检查您的yaml文件,并确保您已设置了source节点的管道C的全名,并选择包含该项目的右分支。确保项目位于master分支下。
请不要忘记添加主分支的- include。
使用以下命令:
resources:
pipelines:
- pipeline: A
source: A.source // the full name of the pipeline A
trigger:
branches:
include:
- master
- pipeline: B
source: B.Source // the full name of the pipeline B
trigger:
branches:
include:
- master然后,当您运行流水线A和B时,它将自动触发流水线C。
我已经在我这边测试过了,它工作得很好。
在我看来,我是这样写的:
resources:
pipelines:
- pipeline: me
source: first_repository (2)
trigger:
branches:
include:
- masterfirst_repository (2)是管道的名称,然后,我运行first_repository (2),而且,您应该在first_repository (2)管道完成后刷新页面。然后你会看到下面的页面。

https://stackoverflow.com/questions/67403956
复制相似问题