From a8893650b9aea0bec3ec7a207f258ba2d2ba6573 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Tue, 3 Jun 2025 18:58:33 +0200 Subject: [PATCH] try git ref --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bd53d09..f7c390d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,10 @@ pipeline { agent none environment { - GIT_REF = """${sh( - returnStdout: true, - script: 'git describe --tags --exact-match 2>/dev/null || git symbolic-ref --short HEAD' - )}""" + GIT_REF = sh( + returnStdout: true, + script: 'git describe --tags --exact-match 2>/dev/null || git symbolic-ref --short HEAD' + ).trim() } stages { stage('Build') {