From 375f2c466085b498f3ee532e96298d0986b9ee6a Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Thu, 18 Jun 2026 12:14:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20echo=20=E4=B8=AD=E6=96=87=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=20bat+chcp65001=20=E4=BF=AE=E5=A4=8D=20Jenkins=20?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=8F=B0=E4=B9=B1=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Windows Jenkins JVM 的 echo 步骤输出中文时出现三重 UTF-8 编码问题, 改用 bat 'chcp 65001 >nul && echo ...' 绕过。 Co-Authored-By: Claude --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5cae47b..5f68993 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -182,9 +182,9 @@ print('versions.json updated, platformVersion=' + d.get('platformVersion', '')) script { def serviceVersions = new groovy.json.JsonSlurper().parseText(env.SERVICE_VERSIONS_JSON ?: '{}') def summary = serviceVersions.collect { svc, ver -> "${svc}:${ver}" }.join(', ') - echo "✅ 构建部署成功 — ${summary}" + bat "chcp 65001 >nul && echo ✅ 构建部署成功 — ${summary}" } } - failure { echo "❌ 构建失败,请检查日志" } + failure { bat 'chcp 65001 >nul && echo ❌ 构建失败,请检查日志' } } }