问题: - Build #9 所有步骤成功(编译、部署) - 但健康检查失败(15秒等待不够) - Spring Boot 应用需要约30-40秒完全启动 解决: - 将健康检查等待时间调整为45秒 - 确保服务完全启动后再进行检查 验证: - 手动测试服务正常运行 - http://154.30.6.21:8123/actuator/health 返回 UP 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -60,7 +60,7 @@ steps:
|
||||
- name: 健康检查
|
||||
image: curlimages/curl:latest
|
||||
commands:
|
||||
- sleep 15 # 等待服务启动
|
||||
- sleep 45 # 等待服务完全启动(Spring Boot 应用需要约30-40秒)
|
||||
- curl -f http://154.30.6.21:8123/actuator/health || exit 1
|
||||
- echo "✅ 健康检查通过"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user