parameterize s3
parent
f8919ac920
commit
35faa06a5c
|
|
@ -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`) ||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -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`) ||
|
||||
|
|
|
|||
Loading…
Reference in New Issue