Update Jenkinsfile

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

9
Jenkinsfile vendored
View file

@ -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
"""
}
}
}