проверка4
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
1cbe53bba0
commit
669f0678ac
|
|
@ -38,9 +38,10 @@ pipeline {
|
||||||
""", returnStdout: true).trim()
|
""", returnStdout: true).trim()
|
||||||
|
|
||||||
if (!lastVersion) {
|
if (!lastVersion) {
|
||||||
|
sh "echo we are here"
|
||||||
lastVersion = "0.0.0"
|
lastVersion = "0.0.0"
|
||||||
}
|
}
|
||||||
|
sh "echo ${lastVersion}"
|
||||||
def (major, minor, patch) = lastVersion.tokenize('.')
|
def (major, minor, patch) = lastVersion.tokenize('.')
|
||||||
def newVersion = "${major}.${minor}.${patch.toInteger() + 1}"
|
def newVersion = "${major}.${minor}.${patch.toInteger() + 1}"
|
||||||
env.IMAGE_TAG = newVersion
|
env.IMAGE_TAG = newVersion
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue