diff --git a/Jenkinsfile b/Jenkinsfile index 754bd23..b16ece0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -54,7 +54,10 @@ pipeline { } stage('Confirm Production') { - when { expression { params.DEPLOY_ENV == 'production' } } + when { + beforeInput true + expression { params.DEPLOY_ENV == 'production' } + } input { message '确认发布并部署到生产环境?' ok '确认生产发布' diff --git a/docs/SDK_PLATFORM_V2_HANDOFF.md b/docs/SDK_PLATFORM_V2_HANDOFF.md index 77eaff2..26e9cca 100644 --- a/docs/SDK_PLATFORM_V2_HANDOFF.md +++ b/docs/SDK_PLATFORM_V2_HANDOFF.md @@ -135,5 +135,9 @@ yarn workspace @xuqm/docs-site build - 本地已使用 Wrapper 完成全部 10 个 Maven 模块的 `./mvnw -B test`,构建成功。 同时修正 `UpdatePublishConfigClientContextTest`:测试上下文显式使用 Spring Boot 转换服务和 `RestTemplateBuilder` 的正式构造参数,避免把测试容器缺失的默认 - Bean/类型转换能力误判为生产构造器故障。该提交推送后需再次运行 - `xuqmgroup-tenant-service` 的非生产流水线,确认 Windows Wrapper 路径。 + Bean/类型转换能力误判为生产构造器故障。 +- `xuqmgroup-tenant-service #96` 已在 Windows Jenkins 使用 Wrapper 完成 10 模块测试, + 但同时确认 Declarative Pipeline 的 stage `input` 默认早于 `when` 执行,导致 + development 构建仍等待生产确认。`Confirm Production` 已增加 + `beforeInput true`,该提交推送后需再次运行 development 流水线,确认验证完成后 + 直接结束且不进入任何生产 stage。