import cli methods
parent
92e0a3d279
commit
b44b164858
|
|
@ -2587,7 +2587,7 @@ class Caching {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
//await CloudRunnerSystem.Run(`ls ${sourceFolder.replace(/\\/g, `/`)}`);
|
//await CloudRunnerSystem.Run(`ls ${sourceFolder.replace(/\\/g, `/`)}`);
|
||||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`zip -q ${cacheArtifactName}.zip ${path_1.default.basename(sourceFolder)}`);
|
yield cloud_runner_system_1.CloudRunnerSystem.Run(`zip ${cacheArtifactName}.zip ${path_1.default.basename(sourceFolder)}`);
|
||||||
//await CloudRunnerSystem.Run(`ls ${sourceFolder.replace(/\\/g, `/`)}`);
|
//await CloudRunnerSystem.Run(`ls ${sourceFolder.replace(/\\/g, `/`)}`);
|
||||||
console_1.assert(fs_1.default.existsSync(`${cacheArtifactName}.zip`), 'cache zip exists');
|
console_1.assert(fs_1.default.existsSync(`${cacheArtifactName}.zip`), 'cache zip exists');
|
||||||
console_1.assert(fs_1.default.existsSync(path_1.default.basename(sourceFolder)), 'source folder exists');
|
console_1.assert(fs_1.default.existsSync(path_1.default.basename(sourceFolder)), 'source folder exists');
|
||||||
|
|
@ -2640,7 +2640,7 @@ class Caching {
|
||||||
remote_client_logger_1.RemoteClientLogger.log(`cache item exists ${cacheFolder}/${cacheSelection}.zip`);
|
remote_client_logger_1.RemoteClientLogger.log(`cache item exists ${cacheFolder}/${cacheSelection}.zip`);
|
||||||
console_1.assert(`${fs_1.default.existsSync(destinationFolder)}`, `destination folder to pull into exists`);
|
console_1.assert(`${fs_1.default.existsSync(destinationFolder)}`, `destination folder to pull into exists`);
|
||||||
const fullResultsFolder = path_1.default.join(cacheFolder, resultsFolder);
|
const fullResultsFolder = path_1.default.join(cacheFolder, resultsFolder);
|
||||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`unzip -q ${cacheSelection}.zip -d ${path_1.default.basename(resultsFolder)}`);
|
yield cloud_runner_system_1.CloudRunnerSystem.Run(`unzip ${cacheSelection}.zip -d ${path_1.default.basename(resultsFolder)}`);
|
||||||
remote_client_logger_1.RemoteClientLogger.log(`cache item extracted to ${fullResultsFolder}`);
|
remote_client_logger_1.RemoteClientLogger.log(`cache item extracted to ${fullResultsFolder}`);
|
||||||
//await CloudRunnerSystem.Run(`du -h ${fullResultsFolder.replace(/\\/g, `/`)}`);
|
//await CloudRunnerSystem.Run(`du -h ${fullResultsFolder.replace(/\\/g, `/`)}`);
|
||||||
//await CloudRunnerSystem.Run(`du -h ${fullResultsFolder}/${path.basename(destinationFolder)}`);
|
//await CloudRunnerSystem.Run(`du -h ${fullResultsFolder}/${path.basename(destinationFolder)}`);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -72,7 +72,7 @@ export class Caching {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
//await CloudRunnerSystem.Run(`ls ${sourceFolder.replace(/\\/g, `/`)}`);
|
//await CloudRunnerSystem.Run(`ls ${sourceFolder.replace(/\\/g, `/`)}`);
|
||||||
await CloudRunnerSystem.Run(`zip -q ${cacheArtifactName}.zip ${path.basename(sourceFolder)}`);
|
await CloudRunnerSystem.Run(`zip ${cacheArtifactName}.zip ${path.basename(sourceFolder)}`);
|
||||||
//await CloudRunnerSystem.Run(`ls ${sourceFolder.replace(/\\/g, `/`)}`);
|
//await CloudRunnerSystem.Run(`ls ${sourceFolder.replace(/\\/g, `/`)}`);
|
||||||
assert(fs.existsSync(`${cacheArtifactName}.zip`), 'cache zip exists');
|
assert(fs.existsSync(`${cacheArtifactName}.zip`), 'cache zip exists');
|
||||||
assert(fs.existsSync(path.basename(sourceFolder)), 'source folder exists');
|
assert(fs.existsSync(path.basename(sourceFolder)), 'source folder exists');
|
||||||
|
|
@ -133,7 +133,7 @@ export class Caching {
|
||||||
RemoteClientLogger.log(`cache item exists ${cacheFolder}/${cacheSelection}.zip`);
|
RemoteClientLogger.log(`cache item exists ${cacheFolder}/${cacheSelection}.zip`);
|
||||||
assert(`${fs.existsSync(destinationFolder)}`, `destination folder to pull into exists`);
|
assert(`${fs.existsSync(destinationFolder)}`, `destination folder to pull into exists`);
|
||||||
const fullResultsFolder = path.join(cacheFolder, resultsFolder);
|
const fullResultsFolder = path.join(cacheFolder, resultsFolder);
|
||||||
await CloudRunnerSystem.Run(`unzip -q ${cacheSelection}.zip -d ${path.basename(resultsFolder)}`);
|
await CloudRunnerSystem.Run(`unzip ${cacheSelection}.zip -d ${path.basename(resultsFolder)}`);
|
||||||
RemoteClientLogger.log(`cache item extracted to ${fullResultsFolder}`);
|
RemoteClientLogger.log(`cache item extracted to ${fullResultsFolder}`);
|
||||||
//await CloudRunnerSystem.Run(`du -h ${fullResultsFolder.replace(/\\/g, `/`)}`);
|
//await CloudRunnerSystem.Run(`du -h ${fullResultsFolder.replace(/\\/g, `/`)}`);
|
||||||
//await CloudRunnerSystem.Run(`du -h ${fullResultsFolder}/${path.basename(destinationFolder)}`);
|
//await CloudRunnerSystem.Run(`du -h ${fullResultsFolder}/${path.basename(destinationFolder)}`);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue