try git ref
Some checks are pending
Build Multiarch Container Image / call-reusable-workflow (push) Waiting to run
Some checks are pending
Build Multiarch Container Image / call-reusable-workflow (push) Waiting to run
This commit is contained in:
parent
05923d07a9
commit
56c375dbb0
1 changed files with 1 additions and 1 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -3,7 +3,7 @@ pipeline {
|
||||||
environment {
|
environment {
|
||||||
GIT_REF = """${sh(
|
GIT_REF = """${sh(
|
||||||
returnStdout: true,
|
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()}"""
|
).trim()}"""
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue