Merge pull request #1491 from pikasTech/fix/1476-sentinel-native-trigger-hotfix

fix: read sentinel builder namespace from yaml
This commit is contained in:
Lyon
2026-07-03 15:42:12 +08:00
committed by GitHub
+1 -1
View File
@@ -1053,7 +1053,7 @@ function executeNativeSentinelTrigger(follower: FollowerSpec, observedSha: strin
sourceAuthority: "git-mirror-snapshot",
});
const pipelineRun = sentinelPipelineRunName(state, false);
const namespace = stringField(state.cicd, "builder.namespace", `${follower.id}.sentinel.cicd.builder`);
const namespace = stringField(recordField(state.cicd, "builder", `${follower.id}.sentinel.cicd`), "namespace", `${follower.id}.sentinel.cicd.builder`);
const manifest = sentinelPublishPipelineRunManifest(state, pipelineRun, true);
const result = runNativeTektonPipelineRun(namespace, pipelineRun, manifest, options.wait, timeoutSeconds);
const payload = parseJsonObject(result.stdout) ?? {};