补全预览流水线首次触发参数
在 Jenkins Job 配置中预声明部署参数 增加 buildWithParameters 首次触发合同检查
This commit is contained in:
@@ -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/',
|
||||
|
||||
Reference in New Issue
Block a user