Update Jenkinsfile

This commit is contained in:
BrahmanapallyNagaraju 2020-04-08 16:22:45 +05:30 committed by GitHub
parent a379821374
commit 14c6784fd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
Jenkinsfile vendored
View file

@ -10,11 +10,13 @@ stages {
} }
} }
stage("deploy") { stage("deploy") {
steps {
sh "cd spring-petclinic" sh "cd spring-petclinic"
sh """ sh """
docker build -t pet-clinic:1.0 . docker build -t pet-clinic:1.0 .
docker run -d -p 8080:8080 pet-clinic:1.0 docker run -d -p 8080:8080 pet-clinic:1.0
""" """
} }
}
} }
} }