mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 14:55:51 +00:00
Update jenkinsfile
This commit is contained in:
parent
49e82cbcd4
commit
64eaf76d57
1 changed files with 2 additions and 3 deletions
|
@ -50,9 +50,8 @@ node {
|
|||
//customImage.push()
|
||||
//}
|
||||
|
||||
sh "sudo docker build --build-arg JAR_FILE_PATH=/var/lib/jenkins/workspace/sample/target/*.war -t sandeepds2002/petclinic ."
|
||||
sh "sudo docker build -t sandeepds2002/petclinic ."
|
||||
sh "sudo docker push sandeepds2002/petclinic"
|
||||
sh "sudo rm -r /var/lib/jenkins/workspace/sample/target/spring-petclinic.war"
|
||||
sh "sudo docker rmi -f sandeepds2002/petclinic"
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue