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