Files
pipeline-scripts/chuanqi_server_jenkins
aixianling e32291df7b ci(chuanqi_server): 更新 Jenkins 部署步骤
- 修改了 git pull 命令的执行路径为 /home/cq/chuanqi-server
- 替换了 docker compose restart 命令,改为复制整个 chuanqi-server目录到 /home/cq/data
2024-12-13 17:22:52 +08:00

21 lines
438 B
Plaintext

pipeline {
agent any
stages {
stage('部署') {
steps {
echo 'Deploying...'
sh "cd /home/cq/chuanqi-server&&git pull"
sh "cp -r /home/cq/chuanqi-server /home/cq/data"
}
}
}
post{
success {
echo 'Deployment finished successfully.'
}
failure {
echo 'Deployment failed.'
}
}
}