Provide an error message when multiple builds have the same name
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'
Only one 'test' build is run and it prints 'second test'.
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