Tried using GIT_BRANCH env variable.