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