From c77651ddf5035f49861224d007737bf42fbee2b3 Mon Sep 17 00:00:00 2001 From: zk Date: Wed, 27 May 2026 14:07:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=9C=AC=E5=9C=B0=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E5=91=BD=E4=BB=A4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client-api/Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client-api/Jenkinsfile b/client-api/Jenkinsfile index 3fa9d4f..ece4d83 100644 --- a/client-api/Jenkinsfile +++ b/client-api/Jenkinsfile @@ -33,7 +33,11 @@ pipeline { stages { stage('环境检查') { steps { - sh 'which sshpass || (apt-get update && apt-get install -y sshpass)' + sh ''' + if ! which sshpass > /dev/null 2>&1; then + apt-get update && apt-get install -y sshpass + fi + ''' } }