mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:05:50 +00:00
Update Jenkinsfile
This commit is contained in:
parent
1b7c29ec20
commit
a379821374
1 changed files with 9 additions and 0 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -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
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue