order cache test to be first

pull/353/head
Frostebite 2022-04-07 00:54:57 +01:00
parent 1882523a22
commit 4b23cc85c7
3 changed files with 9 additions and 5 deletions

4
dist/index.js vendored
View File

@ -584,7 +584,7 @@ class CLI {
try {
const buildParameter = JSON.parse(process.env.BUILD_PARAMETERS || '{}');
__1.CloudRunner.buildParameters = buildParameter;
yield caching_1.Caching.PushToCache(CLI.options['cachePushTo'], CLI.options['cachePushFrom'], CLI.options['artifactName']);
yield caching_1.Caching.PushToCache(CLI.options['cachePushTo'], CLI.options['cachePushFrom'], CLI.options['artifactName'] || '');
}
catch (error) {
cloud_runner_logger_1.default.log(`${error}`);
@ -596,7 +596,7 @@ class CLI {
try {
const buildParameter = JSON.parse(process.env.BUILD_PARAMETERS || '{}');
__1.CloudRunner.buildParameters = buildParameter;
yield caching_1.Caching.PullFromCache(CLI.options['cachePushFrom'], CLI.options['cachePushTo'], CLI.options['artifactName']);
yield caching_1.Caching.PullFromCache(CLI.options['cachePushFrom'], CLI.options['cachePushTo'], CLI.options['artifactName'] || '');
}
catch (error) {
cloud_runner_logger_1.default.log(`${error}`);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -102,7 +102,11 @@ export class CLI {
try {
const buildParameter = JSON.parse(process.env.BUILD_PARAMETERS || '{}');
CloudRunner.buildParameters = buildParameter;
await Caching.PushToCache(CLI.options['cachePushTo'], CLI.options['cachePushFrom'], CLI.options['artifactName']);
await Caching.PushToCache(
CLI.options['cachePushTo'],
CLI.options['cachePushFrom'],
CLI.options['artifactName'] || '',
);
} catch (error: any) {
CloudRunnerLogger.log(`${error}`);
}
@ -116,7 +120,7 @@ export class CLI {
await Caching.PullFromCache(
CLI.options['cachePushFrom'],
CLI.options['cachePushTo'],
CLI.options['artifactName'],
CLI.options['artifactName'] || '',
);
} catch (error: any) {
CloudRunnerLogger.log(`${error}`);