pipeline improvements
parent
0cdc9ce356
commit
a5a496658a
|
@ -203,11 +203,11 @@ export class Cli {
|
||||||
} -delete`,
|
} -delete`,
|
||||||
);
|
);
|
||||||
|
|
||||||
// await CloudRunnerSystem.Run(
|
await CloudRunnerSystem.Run(
|
||||||
// `find ${CloudRunnerFolders.ToLinuxFolder(CloudRunnerFolders.cacheFolderForAllFull)} -name '*.*' -mmin +${
|
`find ${CloudRunnerFolders.ToLinuxFolder(CloudRunnerFolders.cacheFolderForAllFull)} -name '*.*' -mmin +${
|
||||||
// parameters.garbageCollectionMaxAge * 60
|
parameters.garbageCollectionMaxAge * 60
|
||||||
// } -delete`,
|
} -delete`,
|
||||||
// );
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Promise((result) => result(``));
|
return new Promise((result) => result(``));
|
||||||
|
|
|
@ -44,6 +44,7 @@ export class Caching {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static async PushToCache(cacheFolder: string, sourceFolder: string, cacheArtifactName: string) {
|
public static async PushToCache(cacheFolder: string, sourceFolder: string, cacheArtifactName: string) {
|
||||||
|
CloudRunnerLogger.log(`Pushing to cache ${sourceFolder}`);
|
||||||
cacheArtifactName = cacheArtifactName.replace(' ', '');
|
cacheArtifactName = cacheArtifactName.replace(' ', '');
|
||||||
const startPath = process.cwd();
|
const startPath = process.cwd();
|
||||||
let compressionSuffix = '';
|
let compressionSuffix = '';
|
||||||
|
@ -102,6 +103,7 @@ export class Caching {
|
||||||
process.chdir(`${startPath}`);
|
process.chdir(`${startPath}`);
|
||||||
}
|
}
|
||||||
public static async PullFromCache(cacheFolder: string, destinationFolder: string, cacheArtifactName: string = ``) {
|
public static async PullFromCache(cacheFolder: string, destinationFolder: string, cacheArtifactName: string = ``) {
|
||||||
|
CloudRunnerLogger.log(`Pulling from cache ${destinationFolder}`);
|
||||||
if (CloudRunner.buildParameters.cloudRunnerDebugSkipCache) {
|
if (CloudRunner.buildParameters.cloudRunnerDebugSkipCache) {
|
||||||
await new Promise((resolve) => resolve);
|
await new Promise((resolve) => resolve);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue