From 56c375dbb06629f75ac7181030646b46bb64ec13 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Tue, 3 Jun 2025 19:14:47 +0200 Subject: [PATCH] try git ref --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6646b3b..cd46668 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ pipeline { environment { GIT_REF = """${sh( returnStdout: true, - script: 'git describe --tags --exact-match 2>/dev/null || git symbolic-ref --short HEAD' + script: 'git describe --tags --exact-match 2>/dev/null || git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --short HEAD' ).trim()}""" } stages {