Fix misleading error for invalid job dependencies
Make error message more generic when the job dependencies are invalid, since it can be caused by many different conditions.
Related to #287772 (closed)
Steps to test
With dependency list
- In gitlab_ci.yaml add jobs with dependencies:
build linux:
stage: build
script: echo 'hello'
test linux:
stage: test
script: echo 'hello'
dependencies:
- build linux
- Run the pipeline
- Navigate to the
build linux
page and use the trash can icon to delete the job referenced in dependencies(build linux
) - Retry the dependent job(
test linux
)
Without dependency list
- In gitlab_ci.yaml add jobs with dependencies:
build_job:
stage: build
script:
- ls -lhR
needs:
- project: namespace/group/project-name
job: build-1
ref: main
artifacts: true
- Run the pipeline
Screenshots
With dependency list
screenshot description | screenshot |
---|---|
CI file | |
Error |
Without dependency list
screenshot | |
---|---|
CI File | |
Error |
Edited by Allison Browne