Provide an error message when multiple builds have the same name
Summary
When 2 builds have the same name in the .gitlab-ci.yml
then the first one isn't run. There is no good error message to explain why, or even state that it happened.
Steps to reproduce
Create a project and, in the .gitlab-ci.yml
file, add the following:
test:
script:
- echo 'first test'
test:
script:
- echo 'second test'
Actual behavior
Only one 'test' build is run and it prints 'second test'.
Expected behavior
Make it clear on the documentation that we allow having the same name but always override them with the latest job
Relevant logs and/or screenshots
Example pipeline: https://gitlab.com/harishsr/rails_01/pipelines/10917968
Edited by Dov Hershkovitch