Manual CI run of master fails with a 500 error
Running a build on master branch (of project Swagatron) fails with a 500 (something went wrong) error. I can't find any logs on the source of this error. Our CI/CD yml file has been working for some time now. We're having to manually run because when merging into master, it no longer triggers the CI/CD pipeline to build master. We get into this state when someone creates branches separately from creating issue (tickets) and then associates the branch to that issue.
Solution
This is raised if there are duplicate names in needs:
keyword in the .gitlab-ci.yml
test:
stage: test
script: echo
needs: [build1, build2, build2]
Here there are move events spread across different pipeline creation events: https://sentry.gitlab.net/gitlab/gitlabcom/?query=is%3Aunresolved+unique+constraint+%22index_ci_build_needs_on_build_id_and_name%22
Removing the duplicates from the list before saving it would solve the problem.