From 317c83dc1deace8a3d763f5efffa1e0e0dced600 Mon Sep 17 00:00:00 2001 From: Jakub Date: Wed, 19 Jun 2024 17:54:19 +0200 Subject: [PATCH] fix(ci): use --tags to match non-annotated tags (#2814) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently tags used in the project are a mix of annotated and non-annotated/lightweight tags. Without `--tags` flag `git describe` will not take into account annotated tags. Signed-off-by: Jakub SokoĊ‚owski --- ci/Jenkinsfile.release | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/Jenkinsfile.release b/ci/Jenkinsfile.release index 476b09ae2..5ea0751e1 100644 --- a/ci/Jenkinsfile.release +++ b/ci/Jenkinsfile.release @@ -1,5 +1,5 @@ #!/usr/bin/env groovy -library 'status-jenkins-lib@v1.8.9' +library 'status-jenkins-lib@v1.8.17' pipeline { agent { label 'linux' } @@ -68,7 +68,7 @@ pipeline { "${params.IMAGE_NAME}:${params.IMAGE_TAG ?: env.GIT_COMMIT.take(8)}", "--label=build='${env.BUILD_URL}' " + "--label=commit='${git.commit()}' " + - "--label=version='${git.describe()}' " + + "--label=version='${git.describe('--tags')}' " + "--build-arg=MAKE_TARGET='${params.MAKE_TARGET}' " + "--build-arg=NIMFLAGS='${params.NIMFLAGS} -d:postgres ' " + "--build-arg=LOG_LEVEL='${params.LOWEST_LOG_LEVEL_ALLOWED}' " +