mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:05:50 +00:00
Update Jenkinsfile
This commit is contained in:
parent
b56d2be21d
commit
748476a81c
1 changed files with 3 additions and 3 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -16,7 +16,7 @@ pipeline {
|
||||||
stage('Docker Build') {
|
stage('Docker Build') {
|
||||||
agent any
|
agent any
|
||||||
steps {
|
steps {
|
||||||
sh 'docker build -t mrcool435/spring-petclinic:latest .'
|
sh 'docker build -t spring-petclinic:latest .'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Docker Push') {
|
stage('Docker Push') {
|
||||||
|
@ -25,8 +25,8 @@ pipeline {
|
||||||
withCredentials([usernamePassword(credentialsId: 'DOCKER_HUB_GLOBAL', passwordVariable: 'dockerHubPassword',
|
withCredentials([usernamePassword(credentialsId: 'DOCKER_HUB_GLOBAL', passwordVariable: 'dockerHubPassword',
|
||||||
usernameVariable: 'dockerHubUser')]) {
|
usernameVariable: 'dockerHubUser')]) {
|
||||||
sh "docker login -u ${env.dockerHubUser} -p ${env.dockerHubPassword}"
|
sh "docker login -u ${env.dockerHubUser} -p ${env.dockerHubPassword}"
|
||||||
sh 'docker tag spring-petclinic1 mrcool435/mrcool435/spring-petclinic'
|
sh 'docker tag spring-petclinic sanjeev435/spring-petclinic'
|
||||||
sh 'docker push mrcool435/spring-petclinic:latest'
|
sh 'docker push sanjeev435/spring-petclinic'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue