From 8683bbee1f807d994afa96ac8ce3c1a0ca47e4ac Mon Sep 17 00:00:00 2001 From: ModerRAS Date: Mon, 3 Apr 2023 00:18:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0sshpass=E7=9A=84=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 1493b16..8950e20 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,6 +36,8 @@ pipeline { SERVER_PORT = credentials('736149c1-675d-470d-abce-3fb9e8e146c0') } steps { + sh 'apt update -y' + sh 'apt install -y sshpass' sh 'sshpass -p $SERVER_CREDENTIALS_PSW ssh -p $SERVER_PORT $SERVER_CREDENTIALS_USR@$SERVER_IP "cd /data/kotadoc && kubectl delete pods kotadoc && kubectl apply -f kotadoc.yaml"' } }