import cli methods

pull/353/head
Frostebite 2022-04-08 00:26:30 +01:00
parent 9e7e0548ac
commit d2e09369e6
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -2618,7 +2618,6 @@ class Caching {
.replace('.zip', '');
process.chdir(cacheFolder);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls ${cacheFolder}`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls ${destinationFolder}`);
const cacheSelection = cacheArtifactName !== `` && fs_1.default.existsSync(`${cacheArtifactName}.zip`) ? cacheArtifactName : latestInBranch;
yield cloud_runner_logger_1.default.log(`cache key ${cacheArtifactName} selection ${cacheSelection}`);
// eslint-disable-next-line func-style
@ -2645,6 +2644,7 @@ class Caching {
fs_1.default.rmSync(destinationFolder, { recursive: true, force: true });
}
yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv "${fullResultsFolder}/${path_1.default.basename(destinationFolder)}" "${destinationParentFolder}"`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls ${destinationFolder}`);
}
else {
remote_client_logger_1.RemoteClientLogger.logWarning(`cache item ${cacheArtifactName} doesn't exist ${destinationFolder}`);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -102,7 +102,6 @@ export class Caching {
process.chdir(cacheFolder);
await CloudRunnerSystem.Run(`ls ${cacheFolder}`);
await CloudRunnerSystem.Run(`ls ${destinationFolder}`);
const cacheSelection =
cacheArtifactName !== `` && fs.existsSync(`${cacheArtifactName}.zip`) ? cacheArtifactName : latestInBranch;
@ -139,6 +138,7 @@ export class Caching {
await CloudRunnerSystem.Run(
`mv "${fullResultsFolder}/${path.basename(destinationFolder)}" "${destinationParentFolder}"`,
);
await CloudRunnerSystem.Run(`ls ${destinationFolder}`);
} else {
RemoteClientLogger.logWarning(`cache item ${cacheArtifactName} doesn't exist ${destinationFolder}`);
if (cacheSelection !== ``) {