CI Lint: invalid `dependencies` stage value causes unidentified error when used together with `needs`
Summary
Invalid dependencies at '.gitlab-ci.yml' file stage value causes crash when used together with needs.
Steps to reproduce
Validate on CI Lint:
stages:
- test
- build
- deploy
test:
stage: test
script:
- echo 1
build:
stage: build
script:
- echo 1
deploy:
stage: deploy
needs: ["build"]
dependencies: "test" # notice: no brackets
script:
- echo 1
Works as expected if used without needs: or with dependencies: ["test"].
What is the current bug behavior?
What is the expected correct behavior?
Status: syntax is incorrect
Error: jobs:deploy dependencies should be an array of strings
Relevant logs and/or screenshots
NA
Output of checks
This bug happens on GitLab.com
Possible fixes
NA
Edited by Mantas Petrikas

