ci(chuanqi_server): 更新 Jenkins 部署步骤

- 修改了 git pull 命令的执行路径为 /home/cq/chuanqi-server
- 替换了 docker compose restart 命令,改为复制整个 chuanqi-server目录到 /home/cq/data
This commit is contained in:
aixianling
2024-12-13 17:22:52 +08:00
parent 5a03cb7636
commit e32291df7b

View File

@@ -4,8 +4,8 @@ pipeline {
stage('部署') {
steps {
echo 'Deploying...'
sh "cd /home/cq/data&&git pull"
sh "cd /home/cq/data&&docker compose restart"
sh "cd /home/cq/chuanqi-server&&git pull"
sh "cp -r /home/cq/chuanqi-server /home/cq/data"
}
}
}