1

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.

Kok How Teh
  • 3,298
  • 6
  • 47
  • 85
  • 1
    Found the solution from https://stackoverflow.com/questions/42383273/get-git-branch-name-in-jenkins-pipeline-jenkinsfile – Kok How Teh Jun 20 '20 at 04:16

0 Answers0