From a37982137429a9cae6851b948c5a29941dceb90d Mon Sep 17 00:00:00 2001 From: BrahmanapallyNagaraju <44258487+BrahmanapallyNagaraju@users.noreply.github.com> Date: Wed, 8 Apr 2020 16:21:48 +0530 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 9 +++++++++ 1 file changed, 9 insertions(+) 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 + """ + } } }