ci: 更新 Jenkins 部署脚本
- 使用 sshagent 插件管理密钥 - 更新项目路径和注释
This commit is contained in:
@@ -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 """
|
||||
|
||||
Reference in New Issue
Block a user