添加sshpass的安装命令
Wiki/pipeline/head This commit looks good Details

master
ModerRAS 3 years ago
parent 5c244c6868
commit 8683bbee1f

2
Jenkinsfile vendored

@ -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"'
}
}

Loading…
Cancel
Save