123
test-org/test-ci-cd/pipeline/pr-main This commit looks good
Details
test-org/test-ci-cd/pipeline/pr-main This commit looks good
Details
parent
21b65ed3bd
commit
aa5427d9f5
|
|
@ -30,7 +30,7 @@ pipeline {
|
||||||
stage ('Initialize variables') {
|
stage ('Initialize variables') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
lastVersion = sh(script: "git describe --tags --abbrev=0", returnStdout: true).trim()
|
def lastVersion = sh(script: "git describe --tags --abbrev=0", returnStdout: true).trim()
|
||||||
|
|
||||||
if (!lastVersion) {
|
if (!lastVersion) {
|
||||||
lastVersion = "0.0.0"
|
lastVersion = "0.0.0"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue