From f797ec48d31fe91439d361d328bd1fe0b91f04e4 Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Thu, 18 Jun 2026 12:48:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20post=20=E5=9D=97=E4=B8=AD=E7=94=A8?= =?UTF-8?q?=20script=20=E5=8C=85=E8=A3=B9=20Groovy=20=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1b2b8d3..a865df6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -174,8 +174,10 @@ pipeline { post { success { bat 'chcp 65001 >nul && echo Android SDK 构建成功' - def safeVersions = env.PUBLISHED_VERSIONS.replaceAll('\\r?\\n', ' | ') - bat "chcp 65001 >nul && echo 发布版本: ${safeVersions}" + script { + def safeVersions = env.PUBLISHED_VERSIONS.replaceAll('\\r?\\n', ' | ') + bat "chcp 65001 >nul && echo 发布版本: ${safeVersions}" + } } failure { bat 'chcp 65001 >nul && echo Android SDK 构建失败' } }