是否可以使用Multiproject pipeline
功能触发同一项目的管道?
示例gitlab-ci.yml
:
stages:
- stage_1
- stage_2
trigger_job:
stage: stage_1
variables:
SOME_VAR_THAT_SHOULD_BE_SET_ONLY_BY_TRIGGER: "value"
trigger:
project: this/project
branch: master
strategy: depend
triggered_job:
stage: stage_2
only:
variables:
- $SOME_VAR_THAT_SHOULD_BE_SET_ONLY_BY_TRIGGER == "value"
...
我已经尝试了上面的文件,但是没有用。它什么也没做,流水线仅在trigger_job
工作上失败