CI template error: need job is not defined in prior stages
Summary
在同一个 yaml 内的一个 stage 中有两个 job,可以 needs。SaaS 应该开启了 ci_same_stage_job_needs。
而 need job of include template,会报错。
Steps to reproduce
- 编写两个 yaml,比如
.gitlab-ci.yml
need a job in the same stage of.gitlab-ci.two.yml
- git push to run CI
- CI lint web
Example Project
What is the current bug behavior?
CI parse yaml failed: need job is not defined in prior stages
but CI lint success
What is the expected correct behavior?
CI run success