Files
martial-master/.drone.yml
n72595987@gmail.com 44f01e2219
Some checks failed
continuous-integration/drone/push Build is failing
修复 CI 构建:合并克隆和编译步骤
问题:
- 分离的克隆步骤(alpine/git)可能存在权限或文件共享问题
- 导致后续编译步骤找不到克隆的目录

解决方案:
- 将克隆和编译合并到同一个步骤
- 使用 maven 镜像直接执行 git clone(maven 镜像包含 git)
- 在同一容器环境中完成克隆和编译,避免跨容器问题
- 添加错误处理,如果目录已存在则跳过克隆

优势:
- 简化流程,减少步骤数量
- 避免容器间文件系统共享问题
- 更可靠的执行

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 18:02:25 +08:00

2.6 KiB