我有三个项目A,B和C。项目B和C依赖于A,但它们是分开的。项目A的gitlab yml分别触发项目B和C的语法是什么?
以下语法有效,但仅执行第二个管道。而且我一直无法在文档中找到任何示例来列出多个下游项目。
# Build trigger downstream pipelines
staging:
stage: deploy
trigger:
project: WA/ProjectB
project: WA/ProjectC
答案 0 :(得分:1)
答案很简单;只需拆分两个管道
# Build trigger downstream pipelines
staging-B:
variables:
stage: deploy
trigger:
project: WA/B
# Build trigger downstream pipelines
staging-C:
variables:
stage: deploy
trigger:
project: WA/C