远程下载
Some checks failed
构建并部署 Spring Boot 应用 / build-and-deploy (push) Failing after 9s

This commit is contained in:
2025-10-14 03:40:57 +08:00
parent c759eeb96d
commit d033506f06

View File

@@ -40,9 +40,8 @@ jobs:
cp "/opt/jdk-dist/openjdk-17.0.2_linux-x64_bin.tar.gz" jdk.tar.gz cp "/opt/jdk-dist/openjdk-17.0.2_linux-x64_bin.tar.gz" jdk.tar.gz
else else
echo " 文件不存在!" echo " 文件不存在!"
echo "尝试其他路径..." echo " 本地文件不存在,回退到下载"
find / -name "openjdk-17.0.2_linux-x64_bin.tar.gz" 2>/dev/null | head -10 wget http://192.168.171.223:8082/openjdk-17.0.2_linux-x64_bin.tar.gz -O jdk.tar.gz
exit 1
fi fi
echo "安装 JDK..." echo "安装 JDK..."