parameterize s3
parent
0b9ae4ccff
commit
32d22b1750
|
|
@ -4226,7 +4226,10 @@ class Caching {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
cacheArtifactName = cacheArtifactName.replace(' ', '');
|
cacheArtifactName = cacheArtifactName.replace(' ', '');
|
||||||
const startPath = process.cwd();
|
const startPath = process.cwd();
|
||||||
const compressionSuffix = cloud_runner_1.default.buildParameters.useLz4Compression ? '.lz4' : '';
|
let compressionSuffix = '';
|
||||||
|
if (cloud_runner_1.default.buildParameters.useLz4Compression === true) {
|
||||||
|
compressionSuffix = `.lz4`;
|
||||||
|
}
|
||||||
cloud_runner_logger_1.default.log(`Compression: ${cloud_runner_1.default.buildParameters.useLz4Compression} ${compressionSuffix}`);
|
cloud_runner_logger_1.default.log(`Compression: ${cloud_runner_1.default.buildParameters.useLz4Compression} ${compressionSuffix}`);
|
||||||
try {
|
try {
|
||||||
if (!(yield fileExists(cacheFolder))) {
|
if (!(yield fileExists(cacheFolder))) {
|
||||||
|
|
@ -4265,7 +4268,10 @@ class Caching {
|
||||||
static PullFromCache(cacheFolder, destinationFolder, cacheArtifactName = ``) {
|
static PullFromCache(cacheFolder, destinationFolder, cacheArtifactName = ``) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
cacheArtifactName = cacheArtifactName.replace(' ', '');
|
cacheArtifactName = cacheArtifactName.replace(' ', '');
|
||||||
const compressionSuffix = cloud_runner_1.default.buildParameters.useLz4Compression ? '.lz4' : '';
|
let compressionSuffix = '';
|
||||||
|
if (cloud_runner_1.default.buildParameters.useLz4Compression === true) {
|
||||||
|
compressionSuffix = `.lz4`;
|
||||||
|
}
|
||||||
const startPath = process.cwd();
|
const startPath = process.cwd();
|
||||||
remote_client_logger_1.RemoteClientLogger.log(`Caching for (lz4 ${compressionSuffix}) ${path_1.default.basename(destinationFolder)}`);
|
remote_client_logger_1.RemoteClientLogger.log(`Caching for (lz4 ${compressionSuffix}) ${path_1.default.basename(destinationFolder)}`);
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -46,7 +46,10 @@ export class Caching {
|
||||||
public static async PushToCache(cacheFolder: string, sourceFolder: string, cacheArtifactName: string) {
|
public static async PushToCache(cacheFolder: string, sourceFolder: string, cacheArtifactName: string) {
|
||||||
cacheArtifactName = cacheArtifactName.replace(' ', '');
|
cacheArtifactName = cacheArtifactName.replace(' ', '');
|
||||||
const startPath = process.cwd();
|
const startPath = process.cwd();
|
||||||
const compressionSuffix = CloudRunner.buildParameters.useLz4Compression ? '.lz4' : '';
|
let compressionSuffix = '';
|
||||||
|
if (CloudRunner.buildParameters.useLz4Compression === true) {
|
||||||
|
compressionSuffix = `.lz4`;
|
||||||
|
}
|
||||||
CloudRunnerLogger.log(`Compression: ${CloudRunner.buildParameters.useLz4Compression} ${compressionSuffix}`);
|
CloudRunnerLogger.log(`Compression: ${CloudRunner.buildParameters.useLz4Compression} ${compressionSuffix}`);
|
||||||
try {
|
try {
|
||||||
if (!(await fileExists(cacheFolder))) {
|
if (!(await fileExists(cacheFolder))) {
|
||||||
|
|
@ -100,7 +103,10 @@ export class Caching {
|
||||||
}
|
}
|
||||||
public static async PullFromCache(cacheFolder: string, destinationFolder: string, cacheArtifactName: string = ``) {
|
public static async PullFromCache(cacheFolder: string, destinationFolder: string, cacheArtifactName: string = ``) {
|
||||||
cacheArtifactName = cacheArtifactName.replace(' ', '');
|
cacheArtifactName = cacheArtifactName.replace(' ', '');
|
||||||
const compressionSuffix = CloudRunner.buildParameters.useLz4Compression ? '.lz4' : '';
|
let compressionSuffix = '';
|
||||||
|
if (CloudRunner.buildParameters.useLz4Compression === true) {
|
||||||
|
compressionSuffix = `.lz4`;
|
||||||
|
}
|
||||||
const startPath = process.cwd();
|
const startPath = process.cwd();
|
||||||
RemoteClientLogger.log(`Caching for (lz4 ${compressionSuffix}) ${path.basename(destinationFolder)}`);
|
RemoteClientLogger.log(`Caching for (lz4 ${compressionSuffix}) ${path.basename(destinationFolder)}`);
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue