From a317b936a9234633c4539c78a6904723573be30c Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Thu, 18 Jun 2026 12:25:05 +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 Co-Authored-By: Claude --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 635611c..82703f8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -33,7 +33,7 @@ pipeline { stage('Build Info') { steps { - echo "发布版本: ${env.PUBLISH_VERSION} ⚠ 发布前请确认已在 oh-package.json5 中更新版本号" + bat "chcp 65001 >nul && echo 发布版本: ${env.PUBLISH_VERSION} ⚠ 发布前请确认已在 oh-package.json5 中更新版本号" echo "Git Commit: ${env.GIT_COMMIT_SHORT}" } } @@ -74,10 +74,10 @@ pipeline { post { success { - echo "HarmonyOS SDK v${env.PUBLISH_VERSION} 构建成功 (Commit: ${env.GIT_COMMIT_SHORT})" + bat "chcp 65001 >nul && echo HarmonyOS SDK v${env.PUBLISH_VERSION} 构建成功 (Commit: ${env.GIT_COMMIT_SHORT})" } failure { - echo "HarmonyOS SDK 构建失败,请检查日志" + bat 'chcp 65001 >nul && echo HarmonyOS SDK 构建失败,请检查日志' } } }