From 4adacd06987e831a8f4d6f316b2dcfcf949811b3 Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Fri, 20 Mar 2020 20:16:58 +0700 Subject: [PATCH] test jenkins --- Jenkinsfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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}" }