diff --git a/Jenkinsfile b/Jenkinsfile index 074ad0b6d..e5f7c54e7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,16 @@ stages { steps { sh "pwd" sh "ls -lrtha" + sh "cd spring-petclinic" + sh "./mvnw package" } } + stage("deploy") { + sh "cd spring-petclinic" + sh """ + docker build -t pet-clinic:1.0 . + docker run -d -p 8080:8080 pet-clinic:1.0 + """ + } } }