fix(ci): isolate event bridge region parameter

This commit is contained in:
2026-08-24 19:15:15 +08:00
parent 111500d010
commit 7e080622f3
2 changed files with 2 additions and 1 deletions
Vendored
+1 -1
View File
@@ -236,7 +236,7 @@ pipeline {
: env.IMAGE_TAG
String downstreamBridgeRegion = deployBothBridges
? 'CN'
: params.EVENT_BRIDGE_REGION
: (service == 'event-bridge-service' ? params.EVENT_BRIDGE_REGION : 'CN')
echo "触发单服务 Job: ${jobName}"
def downstreamBuild = build(
job: jobName,
@@ -49,5 +49,6 @@ test('coordinator defaults event bridge deployments to both non-production regio
assert.match(pipeline, /事件桥 BOTH 仅支持开发或测试环境/)
assert.match(pipeline, /String downstreamImageTag = deployBothBridges[\s\S]*?\? "\$\{env\.IMAGE_TAG\}-both"/)
assert.match(pipeline, /String downstreamBridgeRegion = deployBothBridges[\s\S]*?\? 'CN'/)
assert.match(pipeline, /service == 'event-bridge-service' \? params\.EVENT_BRIDGE_REGION : 'CN'/)
assert.match(pipeline, /string\(name: 'EVENT_BRIDGE_REGION', value: downstreamBridgeRegion\)/)
})