修改 检查使用 curl 方法
This commit is contained in:
Vendored
+1
-1
@@ -144,7 +144,7 @@ pipeline {
|
|||||||
|
|
||||||
while (retryCount < maxRetries && !healthy) {
|
while (retryCount < maxRetries && !healthy) {
|
||||||
try {
|
try {
|
||||||
sh "docker exec ${CONTAINER_PREFIX}-${env.DEPLOY_TARGET} wget --spider -q ${HEALTH_URL}"
|
sh "docker exec ${CONTAINER_PREFIX}-${env.DEPLOY_TARGET} curl -f ${HEALTH_URL}"
|
||||||
healthy = true
|
healthy = true
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
retryCount++
|
retryCount++
|
||||||
|
|||||||
Reference in New Issue
Block a user