diff --git a/Jenkinsfile b/Jenkinsfile index 55fc303..136a161 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,6 +7,11 @@ pipeline { stages { stage('Show the branch 1') { + GIT_BRANCH_LOCAL = sh ( + script: "echo $Branch | sed -e 's|origin/||g'", + returnStdout: true + ).trim() + echo "Git branch: ${GIT_BRANCH_LOCAL}" steps { sh '/bin/true' echo "BRANCH IS: ${env.BRANCH}"