Update Jenkinsfile

This commit is contained in:
Sanjeev435 2018-08-25 11:16:57 +05:30 committed by GitHub
parent 8635ca82c1
commit b56d2be21d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
Jenkinsfile vendored
View file

@ -25,7 +25,7 @@ pipeline {
withCredentials([usernamePassword(credentialsId: 'DOCKER_HUB_GLOBAL', passwordVariable: 'dockerHubPassword',
usernameVariable: 'dockerHubUser')]) {
sh "docker login -u ${env.dockerHubUser} -p ${env.dockerHubPassword}"
sh 'docker tag spring-petclinic:latest mrcool435/spring-petclinic:latest'
sh 'docker tag spring-petclinic1 mrcool435/mrcool435/spring-petclinic'
sh 'docker push mrcool435/spring-petclinic:latest'
}
}