AWS BASE STACK for tests
parent
aa7cb2a59b
commit
8f7cb18d5d
|
|
@ -4030,7 +4030,7 @@ class Caching {
|
|||
cacheArtifactName = cacheArtifactName.replace(' ', '');
|
||||
const compressionSuffix = cloud_runner_1.default.buildParameters.useLz4Compression ? '.lz4' : '';
|
||||
const startPath = process.cwd();
|
||||
remote_client_logger_1.RemoteClientLogger.log(`Caching for ${path_1.default.basename(destinationFolder)}`);
|
||||
remote_client_logger_1.RemoteClientLogger.log(`Caching for ${cloud_runner_1.default.buildParameters.useLz4Compression} ${path_1.default.basename(destinationFolder)}`);
|
||||
try {
|
||||
if (!(yield fileExists(cacheFolder))) {
|
||||
yield fs_1.default.promises.mkdir(cacheFolder);
|
||||
|
|
@ -4038,7 +4038,7 @@ class Caching {
|
|||
if (!(yield fileExists(destinationFolder))) {
|
||||
yield fs_1.default.promises.mkdir(destinationFolder);
|
||||
}
|
||||
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(`.tar${compressionSuffix}`, '');
|
||||
process.chdir(cacheFolder);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -102,7 +102,9 @@ export class Caching {
|
|||
cacheArtifactName = cacheArtifactName.replace(' ', '');
|
||||
const compressionSuffix = CloudRunner.buildParameters.useLz4Compression ? '.lz4' : '';
|
||||
const startPath = process.cwd();
|
||||
RemoteClientLogger.log(`Caching for ${path.basename(destinationFolder)}`);
|
||||
RemoteClientLogger.log(
|
||||
`Caching for ${CloudRunner.buildParameters.useLz4Compression} ${path.basename(destinationFolder)}`,
|
||||
);
|
||||
try {
|
||||
if (!(await fileExists(cacheFolder))) {
|
||||
await fs.promises.mkdir(cacheFolder);
|
||||
|
|
@ -113,7 +115,7 @@ export class Caching {
|
|||
}
|
||||
|
||||
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`)
|
||||
)
|
||||
.replace(/\n/g, ``)
|
||||
.replace(`.tar${compressionSuffix}`, '');
|
||||
|
|
|
|||
Loading…
Reference in New Issue