diff --git a/Jenkinsfile b/Jenkinsfile index 136a161..2544588 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,12 +7,14 @@ 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 { + GIT_BRANCH_LOCAL = sh ( + script: "echo $Branch | sed -e 's|origin/||g'", + returnStdout: true + ).trim() + + echo "Git branch: ${GIT_BRANCH_LOCAL}" sh '/bin/true' echo "BRANCH IS: ${env.BRANCH}" }