初始化项目
Some checks failed
Java Maven 3.9.9 & JDK 26 CI/CD Pipeline / build-and-deploy (push) Has been cancelled
Some checks failed
Java Maven 3.9.9 & JDK 26 CI/CD Pipeline / build-and-deploy (push) Has been cancelled
This commit is contained in:
parent
d1e4f89abf
commit
a964b9d1ff
@ -57,7 +57,7 @@ jobs:
|
|||||||
# 循环探活:每隔 5 秒检测一次,最多尝试 15 次(总计 75 秒,给高版本 JVM 充足的预热时间)
|
# 循环探活:每隔 5 秒检测一次,最多尝试 15 次(总计 75 秒,给高版本 JVM 充足的预热时间)
|
||||||
for i in {1..15}; do
|
for i in {1..15}; do
|
||||||
# 发送轻量级请求,只要服务响应了(无论是200还是Spring默认的404/无路由),都证明 Tomcat/Netty 已拉起
|
# 发送轻量级请求,只要服务响应了(无论是200还是Spring默认的404/无路由),都证明 Tomcat/Netty 已拉起
|
||||||
if wget -q --spider http://192.168.2.5:${APP_PORT}/hello; then
|
if docker exec ${CONTAINER_NAME} wget -q --spider http://localhost:8080/hello; then
|
||||||
echo "✅ [SUCCESS] 探活成功!Java 26 服务已成功拉起。"
|
echo "✅ [SUCCESS] 探活成功!Java 26 服务已成功拉起。"
|
||||||
|
|
||||||
echo "🧹 开始安全地清理历史无用镜像及过期构建缓存..."
|
echo "🧹 开始安全地清理历史无用镜像及过期构建缓存..."
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user