mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-02-11 17:01:11 +00:00
Update Jenkinsfile.pr
Signed-off-by: Riz Urian <98958099+rizjosel@users.noreply.github.com>
This commit is contained in:
parent
0837bdb607
commit
b8158278cf
1 changed files with 2 additions and 2 deletions
|
|
@ -33,9 +33,9 @@ pipeline {
|
|||
steps {
|
||||
script {
|
||||
try {
|
||||
sh "docker run -d --name ${APP_NAME}-test -p 8080:8080 ${IMAGE_NAME}"
|
||||
sh "docker run -d --name ${APP_NAME}-test -p 18080:8080 ${IMAGE_NAME}"
|
||||
sh "sleep 15"
|
||||
sh "curl -f http://localhost:8080/actuator/health"
|
||||
sh "curl -f http://localhost:18080/actuator/health"
|
||||
} finally {
|
||||
sh "docker stop ${APP_NAME}-test || true"
|
||||
sh "docker rm ${APP_NAME}-test || true"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue