I have checked out Openshift retrieve branch name in jenkinsfile but it doesn't work for me. I have had the necessary git plugins installed. However, everything is null / empty when referenced in Jenkinsfile or BuildConfig template.
env.GIT_BRANCH or GIT_BRANCH is empty.
Any advice and insight is appreciated.