Compare commits

...

2 Commits

Author SHA1 Message Date
ModerRAS 8683bbee1f 添加sshpass的安装命令
Wiki/pipeline/head This commit looks good Details
3 years ago
ModerRAS 5c244c6868 添加Agent适配 3 years ago

4
Jenkinsfile vendored

@ -1,5 +1,5 @@
pipeline {
agent any
agent { label 'Linux' }
stages {
stage('Build Docker Image') {
environment {
@ -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