I am on Gitlab CE 14.1. In my
.gitlab.ci.yml I define two jobs:
B. The job
needs the job
A. I add
A and it runs if some files change in the repo. I also want to skip
A is not created but in those cases CI gives YAML error saying that
A doesn’t exist.
So, I was thinking that the problem should have been solved in 14.1:
In GitLab 13.9 and older, if needs: refers to a job that might not be added to a pipeline because of only, except, or rules, the pipeline might fail to create. ref But it looks like this isn’t the case. A workaround may be copying same
rules on both
B but this isn’t a scalable and easily maintainable solution.
What would be a proper solution?