fix
parent
044a20aefc
commit
889fca27f1
|
|
@ -2460,6 +2460,9 @@ class KubernetesTaskRunner {
|
|||
const phase = (_a = status === null || status === void 0 ? void 0 : status.body.status) === null || _a === void 0 ? void 0 : _a.phase;
|
||||
success = phase === 'Running';
|
||||
cloud_runner_logger_1.default.log(`${(_b = status.body.status) === null || _b === void 0 ? void 0 : _b.phase} ${((_d = (_c = status.body.status) === null || _c === void 0 ? void 0 : _c.conditions) === null || _d === void 0 ? void 0 : _d[0].message) || ''}`);
|
||||
if (__1.Input.cloudRunnerTests) {
|
||||
cloud_runner_logger_1.default.log(`${JSON.stringify(status, undefined, 4)}`);
|
||||
}
|
||||
if (success || phase !== 'Pending')
|
||||
return true;
|
||||
return false;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -81,6 +81,9 @@ class KubernetesTaskRunner {
|
|||
const phase = status?.body.status?.phase;
|
||||
success = phase === 'Running';
|
||||
CloudRunnerLogger.log(`${status.body.status?.phase} ${status.body.status?.conditions?.[0].message || ''}`);
|
||||
if (Input.cloudRunnerTests) {
|
||||
CloudRunnerLogger.log(`${JSON.stringify(status, undefined, 4)}`);
|
||||
}
|
||||
if (success || phase !== 'Pending') return true;
|
||||
return false;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue