From 16f0ab49e9322ca82b9fb51ac042b66cee3683cf Mon Sep 17 00:00:00 2001 From: Benjamin Stein Date: Tue, 29 Aug 2017 13:45:51 -0700 Subject: [PATCH] removing misplaced $ --- jenkinsfiles/dockerhub-demo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkinsfiles/dockerhub-demo b/jenkinsfiles/dockerhub-demo index b3faa52ab..4a6d5ae0f 100644 --- a/jenkinsfiles/dockerhub-demo +++ b/jenkinsfiles/dockerhub-demo @@ -16,7 +16,7 @@ pipeline { steps { script { 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}") failIfVersionExists("liatrio","petclinic-tomcat",containerVersion) sh "docker build -t liatrio/petclinic-tomcat:${containerVersion} ." @@ -28,7 +28,7 @@ pipeline { agent any steps { script { - if ( ${env.BRANCH_NAME} == 'master' ) + if ( ${env.BRANCH_NAME} == 'master' ) sh "docker push liatrio/petclinic-tomcat:${containerVersion}" else sh "docker push liatrio/petclinic-tomcat:${env.BRANCH_NAME}" }