Custom step file support
parent
893209cd4f
commit
088e2036de
|
|
@ -4457,11 +4457,6 @@ class CloudRunnerCustomSteps {
|
|||
if (object === undefined) {
|
||||
throw new Error(`Failed to parse ${steps}`);
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
cloud_runner_logger_1.default.log(`failed to parse a custom job "${steps}"`);
|
||||
throw error;
|
||||
}
|
||||
for (const step of object) {
|
||||
step.secrets = step.secrets.map((x) => {
|
||||
return {
|
||||
|
|
@ -4471,6 +4466,11 @@ class CloudRunnerCustomSteps {
|
|||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
cloud_runner_logger_1.default.log(`failed to parse a custom job "${steps}"`);
|
||||
throw error;
|
||||
}
|
||||
return object;
|
||||
}
|
||||
static RunPostBuildSteps(cloudRunnerStepState) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -41,10 +41,6 @@ export class CloudRunnerCustomSteps {
|
|||
if (object === undefined) {
|
||||
throw new Error(`Failed to parse ${steps}`);
|
||||
}
|
||||
} catch (error) {
|
||||
CloudRunnerLogger.log(`failed to parse a custom job "${steps}"`);
|
||||
throw error;
|
||||
}
|
||||
for (const step of object) {
|
||||
step.secrets = step.secrets.map((x) => {
|
||||
return {
|
||||
|
|
@ -54,6 +50,10 @@ export class CloudRunnerCustomSteps {
|
|||
};
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
CloudRunnerLogger.log(`failed to parse a custom job "${steps}"`);
|
||||
throw error;
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue