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