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
There will be some error message stating that builds cannot have the same name so the error is clear to the user.
Relevant logs and/or screenshots
Example pipeline: https://gitlab.com/harishsr/rails_01/pipelines/10917968