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: '''