ci: 添加 Jenkins 部署管道

- 新增 Jenkins 配置文件 chuanqi_server_jenkins
- 定义简单的部署管道,包括部署阶段和事后处理- 部署步骤为进入指定目录并执行 git pull 操作
- 事后处理包括成功和失败情况下的消息输出
This commit is contained in:
aixianling
2024-12-13 15:31:12 +08:00
parent bcfe679910
commit 3b9721b0b1

19
chuanqi_server_jenkins Normal file
View File

@@ -0,0 +1,19 @@
pipeline {
agent any
stages {
stage('部署') {
steps {
echo 'Deploying...'
sh "cd /home/cq/data&&git pull"
}
}
}
post{
success {
echo 'Deployment finished successfully.'
}
failure {
echo 'Deployment failed.'
}
}
}