Skip to content

Commit

Permalink
fix(ci): use --tags to match non-annotated tags (#2814)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jakubgs authored Jun 19, 2024
1 parent 0c88d72 commit 317c83d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/Jenkinsfile.release
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env groovy
library '[email protected].9'
library '[email protected].17'

pipeline {
agent { label 'linux' }
Expand Down Expand Up @@ -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}' " +
Expand Down

0 comments on commit 317c83d

Please sign in to comment.