ci(chuanqi_server): 更新 Jenkins 部署步骤
- 修改了 git pull 命令的执行路径为 /home/cq/chuanqi-server - 替换了 docker compose restart 命令,改为复制整个 chuanqi-server目录到 /home/cq/data
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user