I have a job in my CI that should be executed automatically on master and manually on every other branch. It looks like this:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
It works, but for every pipeline that runs for a branch there is a normal pipeline and a detached pipeline with only that job created. It’s a last job in this pipeline.
I read that something similar happened with merge requests but in this case merge requests don’t create any detached pipelines.
We are running GitLab Enterprise Edition 13.9.1-ee
Any advice on how to get rid of those detached pipelines?