mirror of https://github.com/waku-org/nwaku.git
fix(ci): use --tags to match non-annotated tags (#2814)
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 <jakub@status.im>
This commit is contained in:
parent
0c88d72d33
commit
317c83dc1d
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
library 'status-jenkins-lib@v1.8.9'
|
library 'status-jenkins-lib@v1.8.17'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'linux' }
|
agent { label 'linux' }
|
||||||
|
@ -68,7 +68,7 @@ pipeline {
|
||||||
"${params.IMAGE_NAME}:${params.IMAGE_TAG ?: env.GIT_COMMIT.take(8)}",
|
"${params.IMAGE_NAME}:${params.IMAGE_TAG ?: env.GIT_COMMIT.take(8)}",
|
||||||
"--label=build='${env.BUILD_URL}' " +
|
"--label=build='${env.BUILD_URL}' " +
|
||||||
"--label=commit='${git.commit()}' " +
|
"--label=commit='${git.commit()}' " +
|
||||||
"--label=version='${git.describe()}' " +
|
"--label=version='${git.describe('--tags')}' " +
|
||||||
"--build-arg=MAKE_TARGET='${params.MAKE_TARGET}' " +
|
"--build-arg=MAKE_TARGET='${params.MAKE_TARGET}' " +
|
||||||
"--build-arg=NIMFLAGS='${params.NIMFLAGS} -d:postgres ' " +
|
"--build-arg=NIMFLAGS='${params.NIMFLAGS} -d:postgres ' " +
|
||||||
"--build-arg=LOG_LEVEL='${params.LOWEST_LOG_LEVEL_ALLOWED}' " +
|
"--build-arg=LOG_LEVEL='${params.LOWEST_LOG_LEVEL_ALLOWED}' " +
|
||||||
|
|
Loading…
Reference in New Issue