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\') ch
In Jenkins there is two pipeline options:
env.BRANCH_NAME
null
master or branch name