parameterize s3

pull/479/head
Frostebite 2023-01-19 18:50:54 +00:00
parent f8919ac920
commit 35faa06a5c
3 changed files with 7 additions and 6 deletions

7
dist/index.js vendored
View File

@ -3269,6 +3269,7 @@ class Kubernetes {
});
}
runTaskInWorkflow(buildGuid, image, commands, mountdir, workingdir, environment, secrets) {
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {
try {
cloud_runner_logger_1.default.log('Cloud Runner K8s workflow!');
@ -3303,11 +3304,11 @@ class Kubernetes {
try {
errorParsed = JSON.parse(error);
}
catch (_a) {
catch (_c) {
errorParsed = error;
}
// const reason = errorParsed.reason || errorParsed.response?.body?.reason || ``;
const errorMessage = errorParsed.message || ``;
const reason = errorParsed.reason || ((_b = (_a = errorParsed.response) === null || _a === void 0 ? void 0 : _a.body) === null || _b === void 0 ? void 0 : _b.reason) || ``;
const errorMessage = errorParsed.message || reason;
const continueStreaming = errorMessage.includes(`dial timeout, backstop`) ||
errorMessage.includes(`HttpError: HTTP request failed`) ||
errorMessage.includes(`an error occurred when try to find container`) ||

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -163,8 +163,8 @@ class Kubernetes implements ProviderInterface {
errorParsed = error;
}
// const reason = errorParsed.reason || errorParsed.response?.body?.reason || ``;
const errorMessage = errorParsed.message || ``;
const reason = errorParsed.reason || errorParsed.response?.body?.reason || ``;
const errorMessage = errorParsed.message || reason;
const continueStreaming =
errorMessage.includes(`dial timeout, backstop`) ||