From d6c016f44a120720a422953ab28cfd27ebc1a3b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E9=B1=BC=E5=92=8C=E9=87=91=E9=B1=BC?= <1711559666@qq.com> Date: Fri, 23 Jan 2026 15:38:31 +0800 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d508eba..f5e10b9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 # 清理缓存,减小容器体积 + " ''' } }