Fix CI wait success reporting

This commit is contained in:
Codex
2026-05-17 06:52:21 +00:00
parent aff2d9ba26
commit c0a6f5cdbb
+2 -1
View File
@@ -278,8 +278,9 @@ function run(options: CiOptions): Record<string, unknown> {
`kubectl get pipelinerun/${shellQuote(name)} -n unidesk-ci -o json`,
"exit 124",
].join("\n"))) : null;
const waitSucceeded = wait === null || wait.exitCode === 0 || wait.stdout.trimStart().startsWith("True\tSucceeded\t");
return {
ok: wait === null || wait.exitCode === 0,
ok: waitSucceeded,
pipelineRun: name,
namespace: "unidesk-ci",
repoUrl: options.repoUrl,