catch setup resource errors

pull/273/head
Frostebite 2021-06-26 04:26:38 +01:00
parent 89868ca60f
commit cb46681c8e
3 changed files with 4 additions and 1 deletions

2
dist/index.js vendored
View File

@ -1364,6 +1364,7 @@ class Kubernetes {
core.info('Failed to cleanup, error:'); core.info('Failed to cleanup, error:');
core.error(JSON.stringify(error, undefined, 4)); core.error(JSON.stringify(error, undefined, 4));
core.info('Abandoning cleanup, build error:'); core.info('Abandoning cleanup, build error:');
throw error;
} }
}); });
} }
@ -2067,6 +2068,7 @@ class RemoteBuilder {
core.error(JSON.stringify(error, undefined, 4)); core.error(JSON.stringify(error, undefined, 4));
core.setFailed('Remote Builder failed'); core.setFailed('Remote Builder failed');
yield this.RemoteBuilderProviderPlatform.cleanupSharedBuildResources(buildUid, buildParameters, branchName, defaultSecretsArray); yield this.RemoteBuilderProviderPlatform.cleanupSharedBuildResources(buildUid, buildParameters, branchName, defaultSecretsArray);
throw error;
} }
}); });
} }

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -76,6 +76,7 @@ class RemoteBuilder {
branchName, branchName,
defaultSecretsArray, defaultSecretsArray,
); );
throw error;
} }
} }