修复 AGC 发号 Job 的 ossutil 引导路径
Project CI / AI game creator shell Rust shard 4/4 (push) Failing after 18s
Project CI / AI game creator shell Rust shard 1/4 (push) Failing after 19s
Project CI / AI game creator shell Rust shard 2/4 (push) Failing after 19s
Project CI / AI game creator shell Rust shard 3/4 (push) Failing after 19s
Project CI / Native shell tests (push) Failing after 19s
Project CI / AI game creator shell Rust crates (push) Failing after 19s
Project CI / Backend tests (push) Failing after 19s
Project CI / AI game creator shell Rust smoke (push) Failing after 19s
Project CI / Frontend tests (push) Failing after 6s
Project CI / AI game creator shell web tests (push) Failing after 11s
Project CI / Repository checks (push) Failing after 12s
Project CI / AI game creator shell Rust shard 4/4 (push) Failing after 18s
Project CI / AI game creator shell Rust shard 1/4 (push) Failing after 19s
Project CI / AI game creator shell Rust shard 2/4 (push) Failing after 19s
Project CI / AI game creator shell Rust shard 3/4 (push) Failing after 19s
Project CI / Native shell tests (push) Failing after 19s
Project CI / AI game creator shell Rust crates (push) Failing after 19s
Project CI / Backend tests (push) Failing after 19s
Project CI / AI game creator shell Rust smoke (push) Failing after 19s
Project CI / Frontend tests (push) Failing after 6s
Project CI / AI game creator shell web tests (push) Failing after 11s
Project CI / Repository checks (push) Failing after 12s
官方 ossutil v2 zip 解压后带版本目录,先定位二进制再落到工作区固定路径 避免 chmod 找不到文件导致发号 Job 在引导阶段失败
This commit is contained in:
@@ -91,7 +91,14 @@ pipeline {
|
||||
if [[ ! -x "${OSSUTIL_TOOLS_DIR}/ossutil" ]]; then
|
||||
curl -fsSL -o "${OSSUTIL_TOOLS_DIR}/ossutil.zip" \\
|
||||
"https://gosspublic.alicdn.com/ossutil/v2/${version}/ossutil-${version}-linux-amd64.zip"
|
||||
# 官方 zip 解压后是带版本号的目录,二进制不在包根,必须先定位再落到固定路径。
|
||||
unzip -o -q "${OSSUTIL_TOOLS_DIR}/ossutil.zip" -d "${OSSUTIL_TOOLS_DIR}"
|
||||
extracted="$(find "${OSSUTIL_TOOLS_DIR}" -maxdepth 3 -type f -name ossutil -print -quit)"
|
||||
if [[ -z "${extracted}" ]]; then
|
||||
echo "ossutil 解压后未找到可执行文件:${OSSUTIL_TOOLS_DIR}" >&2
|
||||
exit 1
|
||||
fi
|
||||
cp -f "${extracted}" "${OSSUTIL_TOOLS_DIR}/ossutil"
|
||||
chmod +x "${OSSUTIL_TOOLS_DIR}/ossutil"
|
||||
fi
|
||||
"${OSSUTIL_TOOLS_DIR}/ossutil" --version | head -1
|
||||
|
||||
Reference in New Issue
Block a user