补全预览流水线首次触发参数
Project CI / Repository checks (push) Successful in 1m13s
Project CI / Frontend tests (push) Successful in 4m7s
Project CI / Backend tests (push) Successful in 5m4s
Project CI / Native shell tests (push) Failing after 12m44s

在 Jenkins Job 配置中预声明部署参数
增加 buildWithParameters 首次触发合同检查
This commit is contained in:
2026-08-15 17:29:25 +08:00
parent 1746c77cb1
commit 6befa3c33a
2 changed files with 36 additions and 1 deletions
+5
View File
@@ -132,6 +132,11 @@ assertIncludes(
'<scriptPath>jenkins/Jenkinsfile.preview-deployer</scriptPath>',
'Jenkins Job 必须从受保护 master 读取固定流水线。',
);
assertIncludes(
jobConfig,
'<hudson.model.ChoiceParameterDefinition>',
'Jenkins Job 首次触发前必须已经声明 buildWithParameters 参数。',
);
assertIncludes(
nginx,
'location ^~ /api/preview-deployer/',