From 394f89ff9d7e67d12d5d9d1545182d92d04f9f91 Mon Sep 17 00:00:00 2001 From: dany Date: Fri, 16 Sep 2022 11:13:15 +0200 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 87961e9..0dde1c6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -56,7 +56,7 @@ pipeline{ export WORKSPACE="jenkins/workspace/test" cd $WORKSPACE bash test.sh - bname=$(git branch --show-current) + bname=$(git rev-parse --abbrev-ref HEAD) echo "current branche is $bname" ''' sshCommand remote: remote, command: '''