Fix CI wait success reporting
This commit is contained in:
+2
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user