Function get_branch return always "HEAD" in GitLab CI.
Activity
brejoc commentedon Jul 12, 2017
Looks like this is a known issue: https://gitlab.com/gitlab-org/gitlab-ce/issues/19421
brejoc commentedon Aug 11, 2017
@svensq Btw, how does your work-around look like?
svensq commentedon Aug 11, 2017
I use the environment variable "CI_COMMIT_REF_SLUG" of GitLab: https://docs.gitlab.com/ee/ci/variables/#predefined-variables-environment-variables