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('部署') {
steps {
echo 'Deploying...'
sh "cd /home/cq/s1&&git pull"
sh "docker restart chuanqi-server-s1-logic"
sshagent(['huawei68']) {
sh 'cd /mnt/data/docker/chuanqi-server-instance&&git pull'
// sh 'docker restart chuanqi-server-logic'
}
}
}
}
post{
post {
success {
echo 'Deployment finished successfully.'
sh """