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