fix: 将并行部署改为串行部署
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled

- 避免多个 SSH 连接同时建立导致的冲突
- 保持构建阶段的并行,只有部署改为串行
This commit is contained in:
lzh
2026-01-13 16:36:14 +08:00
parent 3f4b69d532
commit 279510dd66

9
Jenkinsfile vendored
View File

@@ -115,16 +115,11 @@ pipeline {
script {
def services = env.SERVICES_TO_BUILD.split(',') as List
// 部署也可以并行
def parallelDeploys = [:]
// 串行部署(避免 SSH 连接冲突)
services.each { service ->
parallelDeploys[service] = {
deployService(service)
}
deployService(service)
}
parallel parallelDeploys
echo "🚀 Deployment completed!"
}
}