mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
make containerVersion global
This commit is contained in:
parent
e3e18e542c
commit
38ce5cd740
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ pipeline {
|
||||||
script {
|
script {
|
||||||
sh "docker build -t liatrio/petclinic-tomcat:${env.BRANCH_NAME} ."
|
sh "docker build -t liatrio/petclinic-tomcat:${env.BRANCH_NAME} ."
|
||||||
if ( env.BRANCH_NAME == 'master' ) {
|
if ( env.BRANCH_NAME == 'master' ) {
|
||||||
def containerVersion = getVersionFromContainer("liatrio/petclinic-tomcat:${env.BRANCH_NAME}")
|
containerVersion = getVersionFromContainer("liatrio/petclinic-tomcat:${env.BRANCH_NAME}")
|
||||||
failIfVersionExists("liatrio","petclinic-tomcat",containerVersion)
|
failIfVersionExists("liatrio","petclinic-tomcat",containerVersion)
|
||||||
sh "docker build -t liatrio/petclinic-tomcat:${containerVersion} ."
|
sh "docker build -t liatrio/petclinic-tomcat:${containerVersion} ."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue