From 748476a81c614c4e442c293379d75b1d290fd789 Mon Sep 17 00:00:00 2001 From: Sanjeev435 Date: Sat, 25 Aug 2018 19:30:34 +0530 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 749c19c56..10420b70a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,7 +16,7 @@ pipeline { stage('Docker Build') { agent any steps { - sh 'docker build -t mrcool435/spring-petclinic:latest .' + sh 'docker build -t spring-petclinic:latest .' } } stage('Docker Push') { @@ -25,8 +25,8 @@ pipeline { withCredentials([usernamePassword(credentialsId: 'DOCKER_HUB_GLOBAL', passwordVariable: 'dockerHubPassword', usernameVariable: 'dockerHubUser')]) { sh "docker login -u ${env.dockerHubUser} -p ${env.dockerHubPassword}" - sh 'docker tag spring-petclinic1 mrcool435/mrcool435/spring-petclinic' - sh 'docker push mrcool435/spring-petclinic:latest' + sh 'docker tag spring-petclinic sanjeev435/spring-petclinic' + sh 'docker push sanjeev435/spring-petclinic' } } }