ci: 更新 Jenkins 部署脚本

- 使用 sshagent 插件管理密钥
- 更新项目路径和注释
This commit is contained in:
aixianling
2025-02-18 14:55:01 +08:00
parent 5d6f6eccc7
commit 1ea3fff921

View File

@@ -4,12 +4,14 @@ pipeline {
stage('部署') { stage('部署') {
steps { steps {
echo 'Deploying...' echo 'Deploying...'
sh "cd /home/cq/s1&&git pull" sshagent(['huawei68']) {
sh "docker restart chuanqi-server-s1-logic" sh 'cd /mnt/data/docker/chuanqi-server-instance&&git pull'
// sh 'docker restart chuanqi-server-logic'
}
} }
} }
} }
post{ post {
success { success {
echo 'Deployment finished successfully.' echo 'Deployment finished successfully.'
sh """ sh """