修复 CI 构建:添加克隆 BladeX 框架步骤
Some checks failed
continuous-integration/drone/push Build is failing

问题:
- Drone CI 只会 clone 当前仓库,不会自动获取 martial-tool
- 导致编译框架依赖步骤失败

解决方案:
- 添加步骤0:使用 alpine/git 镜像克隆 martial-tool 代码
- 将框架代码 clone 到 /drone/martial-tool
- 编译步骤使用正确的路径 /drone/martial-tool

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
n72595987@gmail.com
2025-11-29 17:52:47 +08:00
parent 9d37f3f73d
commit ad1f3df70b

View File

@@ -10,12 +10,22 @@ trigger:
- push
steps:
# 步骤0克隆 BladeX 框架代码
- name: 克隆框架代码
image: alpine/git
commands:
- echo "克隆 BladeX 框架代码..."
- cd /drone
- git clone https://git.waypeak.work/martial/martial-tool.git
- ls -la /drone/martial-tool
- echo "✅ 框架代码克隆完成"
# 步骤1编译 BladeX 框架
- name: 编译框架依赖
image: maven:3.9-eclipse-temurin-17
commands:
- echo "开始编译 BladeX 框架..."
- cd /drone/src/../martial-tool
- cd /drone/martial-tool
- mvn clean install -DskipTests -q
- echo "✅ BladeX 框架编译完成"