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