From 64e71022da600d4839ac9864b9e7abab0ebe5288 Mon Sep 17 00:00:00 2001 From: zk Date: Wed, 27 May 2026 14:09:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E5=AE=89=E8=A3=85=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0sudo=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client-api/Jenkinsfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client-api/Jenkinsfile b/client-api/Jenkinsfile index ece4d83..1b27ae7 100644 --- a/client-api/Jenkinsfile +++ b/client-api/Jenkinsfile @@ -33,11 +33,7 @@ pipeline { stages { stage('环境检查') { steps { - sh ''' - if ! which sshpass > /dev/null 2>&1; then - apt-get update && apt-get install -y sshpass - fi - ''' + sh 'which sshpass || (sudo apt-get update && sudo apt-get install -y sshpass)' } }