Update Jenkinsfile.pr

Signed-off-by: Riz Urian <98958099+rizjosel@users.noreply.github.com>
This commit is contained in:
Riz Urian 2025-12-27 10:34:13 +08:00 committed by GitHub
parent 0837bdb607
commit b8158278cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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