build file edit
All checks were successful
test/timeline-server/pipeline/head This commit looks good
All checks were successful
test/timeline-server/pipeline/head This commit looks good
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -124,13 +124,13 @@ pipeline {
|
||||
writeFile file: 'docker-compose.yml', text: composeContent
|
||||
|
||||
// 拉取最新镜像
|
||||
sh 'docker-compose pull'
|
||||
sh 'docker compose pull'
|
||||
|
||||
// 停止旧容器
|
||||
sh 'docker-compose down || true'
|
||||
sh 'docker compose down || true'
|
||||
|
||||
// 启动新容器
|
||||
sh 'docker-compose up -d'
|
||||
sh 'docker compose up -d'
|
||||
|
||||
echo "所有服务已部署完成"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user