From 279510dd66fa8e602e990ee4987a540c263877ff Mon Sep 17 00:00:00 2001 From: lzh Date: Tue, 13 Jan 2026 16:36:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86=E5=B9=B6=E8=A1=8C=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E6=94=B9=E4=B8=BA=E4=B8=B2=E8=A1=8C=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 避免多个 SSH 连接同时建立导致的冲突 - 保持构建阶段的并行,只有部署改为串行 --- Jenkinsfile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6b6bc4a..4347460 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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!" } }