改用可执行性校验确认 ossutil 就绪
Project CI / AI game creator shell Rust shard 2/4 (push) Failing after 19s
Project CI / AI game creator shell Rust shard 4/4 (push) Failing after 19s
Project CI / AI game creator shell Rust shard 3/4 (push) Failing after 20s
Project CI / AI game creator shell Rust shard 1/4 (push) Failing after 20s
Project CI / AI game creator shell Rust smoke (push) Failing after 18s
Project CI / Native shell tests (push) Failing after 18s
Project CI / Backend tests (push) Failing after 18s
Project CI / AI game creator shell Rust crates (push) Failing after 19s
Project CI / Frontend tests (push) Failing after 7s
Project CI / AI game creator shell web tests (push) Failing after 11s
Project CI / Repository checks (push) Failing after 11s

ossutil v2 不支持 --version,版本打印会误判为失败
引导阶段只校验二进制存在且可执行,具体命令错误仍由发号步骤暴露
This commit is contained in:
2026-09-20 18:24:42 +08:00
parent d64ce64056
commit 752116fe41
+6 -1
View File
@@ -101,7 +101,12 @@ pipeline {
cp -f "${extracted}" "${OSSUTIL_TOOLS_DIR}/ossutil"
chmod +x "${OSSUTIL_TOOLS_DIR}/ossutil"
fi
"${OSSUTIL_TOOLS_DIR}/ossutil" --version | head -1
# ossutil v2 没有 `--version` 选项,这里用可执行性校验代替版本打印,避免误判失败。
if [[ ! -x "${OSSUTIL_TOOLS_DIR}/ossutil" ]]; then
echo "ossutil 未就绪:${OSSUTIL_TOOLS_DIR}/ossutil" >&2
exit 1
fi
echo "ossutil ready: ${OSSUTIL_TOOLS_DIR}/ossutil"
'''
env.EFFECTIVE_OSSUTIL_BIN = "${env.WORKSPACE}/${env.OSSUTIL_TOOLS_DIR}/ossutil"
}