extract lib in caching flow
parent
dd3bc16a63
commit
56642dd610
|
@ -4404,8 +4404,6 @@ class Caching {
|
||||||
if (!(yield fileExists(destinationFolder))) {
|
if (!(yield fileExists(destinationFolder))) {
|
||||||
yield fs_1.default.promises.mkdir(destinationFolder);
|
yield fs_1.default.promises.mkdir(destinationFolder);
|
||||||
}
|
}
|
||||||
// CloudRunnerLogger.log(await CloudRunnerSystem.Run(`ls -t "${cacheFolder}"`));
|
|
||||||
// CloudRunnerLogger.log(await CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$`));
|
|
||||||
const latestInBranch = yield (yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$ | head -1`))
|
const latestInBranch = yield (yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$ | head -1`))
|
||||||
.replace(/\n/g, ``)
|
.replace(/\n/g, ``)
|
||||||
.replace(`.tar${compressionSuffix}`, '');
|
.replace(`.tar${compressionSuffix}`, '');
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -127,9 +127,6 @@ export class Caching {
|
||||||
await fs.promises.mkdir(destinationFolder);
|
await fs.promises.mkdir(destinationFolder);
|
||||||
}
|
}
|
||||||
|
|
||||||
// CloudRunnerLogger.log(await CloudRunnerSystem.Run(`ls -t "${cacheFolder}"`));
|
|
||||||
// CloudRunnerLogger.log(await CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$`));
|
|
||||||
|
|
||||||
const latestInBranch = await (
|
const latestInBranch = await (
|
||||||
await CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$ | head -1`)
|
await CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$ | head -1`)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue