Update Jenkinsfile

This commit is contained in:
木鱼和金鱼 2026-01-23 15:38:31 +08:00 committed by GitHub
parent cab22d6382
commit d6c016f44a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

7
Jenkinsfile vendored
View File

@ -78,8 +78,11 @@ pipeline {
steps {
echo "===============================安装SSH Client========================================"
sh '''
# 基于 Debian 镜像的 Jenkins官方镜像默认是 Debian
sudo apt-get update && apt-get install -y openssh-client
su - root -c "
apt-get update -y &&
apt-get install -y openssh-client curl vim &&
apt-get clean # 清理缓存,减小容器体积
"
'''
}
}