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
4dd03168f1
commit
ed949f97b6
1 changed files with 4 additions and 1 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -1,7 +1,10 @@
|
|||
pipeline {
|
||||
agent none
|
||||
environment {
|
||||
GIT_REF = sh(script: 'git describe --tags --exact-match 2>/dev/null || git symbolic-ref --short HEAD', returnStdout: true)
|
||||
GIT_REF = """${sh(
|
||||
returnStdout: true,
|
||||
script: 'git describe --tags --exact-match 2>/dev/null || git symbolic-ref --short HEAD'
|
||||
).trim()}"""
|
||||
}
|
||||
stages {
|
||||
stage('Build') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue