Jenkins pipeline branch name returns null
I'm trying to get the name of my branch for a jenkins groovy script. I cannot get the current branch name. I try the following: stage('Check out code') checkout scm echo "My branch is: ${env.BRANC...