To build your pipelines, you may need the name of the branch on which the pipeline is running. In most cases, the predefined variables CI_COMMIT_BRANCH or CI_COMMIT_REF_NAME can be used for this. According to GitLab Docs:
To build your pipelines, you may need the name of the branch on which the pipeline is running. In most cases, the predefined variables CI_COMMIT_BRANCH or CI_COMMIT_REF_NAME can be used for this. According to GitLab Docs: