pull/310/head
Frostebite 2021-12-31 22:45:05 +00:00
parent 044a20aefc
commit 889fca27f1
3 changed files with 7 additions and 1 deletions

3
dist/index.js vendored
View File

@ -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;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -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;
},