git rev-parse --abbrev-ref HEAD and git symbolic-ref --short HEAD does not work in gitlab CI because it checks out a commit rather that a branch.
Instead use this environment variable CI_COMMIT_REF_NAME=test
CI_COMMIT_REF_NAME=test
git rev-parse --abbrev-ref HEAD and git symbolic-ref --short HEAD does not work in gitlab CI because it checks out a commit rather that a branch.
Instead use this environment variable
CI_COMMIT_REF_NAME=test