fix push to cache
parent
3566d18112
commit
00b0e4979f
|
|
@ -3729,6 +3729,7 @@ class Caching {
|
|||
cloud_runner_logger_1.default.log(`Hashed cache folder ${yield lfs_hashing_1.LfsHashing.hashAllFiles(sourceFolder)} ${sourceFolder} ${path_1.default.basename(sourceFolder)}`);
|
||||
}
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`tar -cvf ${cacheArtifactName}.tar.lz4 ${path_1.default.basename(sourceFolder)}`);
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`du ${cacheArtifactName}.tar.lz4`);
|
||||
console_1.assert(yield fileExists(`${cacheArtifactName}.tar.lz4`), 'cache archive exists');
|
||||
console_1.assert(yield fileExists(path_1.default.basename(sourceFolder)), 'source folder exists');
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv ${cacheArtifactName}.tar.lz4 ${cacheFolder}`);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -60,6 +60,7 @@ export class Caching {
|
|||
);
|
||||
}
|
||||
await CloudRunnerSystem.Run(`tar -cvf ${cacheArtifactName}.tar.lz4 ${path.basename(sourceFolder)}`);
|
||||
await CloudRunnerSystem.Run(`du ${cacheArtifactName}.tar.lz4`);
|
||||
assert(await fileExists(`${cacheArtifactName}.tar.lz4`), 'cache archive exists');
|
||||
assert(await fileExists(path.basename(sourceFolder)), 'source folder exists');
|
||||
await CloudRunnerSystem.Run(`mv ${cacheArtifactName}.tar.lz4 ${cacheFolder}`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue