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 构建失败' } }