修复 CI 构建:更正 martial-tool 克隆路径
Some checks failed
continuous-integration/drone/push Build is failing

问题:
- Drone 的工作目录是 /drone/src(当前仓库)
- 之前尝试 cd /drone 会失败
- 导致 martial-tool 克隆到错误位置

解决方案:
- 使用 cd /drone/src/.. 导航到父目录
- 在 /drone/src/../martial-tool 位置克隆框架代码
- 编译时使用相同的路径 /drone/src/../martial-tool

路径结构:
/drone/
  ├── src/              # martial-master (当前仓库)
  └── martial-tool/     # BladeX 框架 (克隆的)

🤖 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 18:00:32 +08:00
parent ad1f3df70b
commit 9475e164af

View File

@@ -15,9 +15,10 @@ steps:
image: alpine/git
commands:
- echo "克隆 BladeX 框架代码..."
- cd /drone
- echo "当前目录:$(pwd)"
- cd /drone/src/..
- git clone https://git.waypeak.work/martial/martial-tool.git
- ls -la /drone/martial-tool
- ls -la /drone/src/../martial-tool
- echo "✅ 框架代码克隆完成"
# 步骤1编译 BladeX 框架
@@ -25,7 +26,7 @@ steps:
image: maven:3.9-eclipse-temurin-17
commands:
- echo "开始编译 BladeX 框架..."
- cd /drone/martial-tool
- cd /drone/src/../martial-tool
- mvn clean install -DskipTests -q
- echo "✅ BladeX 框架编译完成"