1
This commit is contained in:
@@ -62,16 +62,7 @@ steps:
|
||||
-o ConnectTimeout=10 \
|
||||
git@github.com
|
||||
|
||||
ssh_exit_code=$?
|
||||
if [ $ssh_exit_code -eq 1 ]; then
|
||||
echo "✅ SSH认证成功(GitHub正常退出码1)"
|
||||
elif [ $ssh_exit_code -eq 255 ]; then
|
||||
echo "❌ SSH认证失败(退出码255,通常是公钥未配置/权限不足)"
|
||||
exit 1
|
||||
else
|
||||
echo "❌ SSH连接异常(退出码:$ssh_exit_code),可能是网络超时/端口拦截"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# 拉取代码
|
||||
|
||||
Reference in New Issue
Block a user