Tagged latest version with version
This commit is contained in:
parent
f3ed5c6768
commit
f84fa15674
|
@ -59,7 +59,10 @@ pipeline {
|
|||
}
|
||||
stage('Tagging with common version') {
|
||||
environment {
|
||||
GROUPED_VERSION = "latest"
|
||||
GROUPED_VERSION = """${sh(
|
||||
returnStdout: true,
|
||||
script: "if [ \"${params.version}\" != \"\" ]; then echo '${params.version}'; else echo 'latest'; fi"
|
||||
)}"""
|
||||
}
|
||||
when {
|
||||
branch "${MASTER_BRANCH}"
|
||||
|
|
Loading…
Reference in New Issue