Added tag before docker push

This commit is contained in:
Sanjeev435 2018-08-25 10:49:04 +05:30 committed by GitHub
parent 3064d719ae
commit 8635ca82c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

1
Jenkinsfile vendored
View file

@ -25,6 +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 push mrcool435/spring-petclinic:latest'
}
}