import cli methods
parent
762843eeba
commit
fb9530048f
|
|
@ -2640,10 +2640,7 @@ class Caching {
|
||||||
if (fs_1.default.existsSync(destinationFolder)) {
|
if (fs_1.default.existsSync(destinationFolder)) {
|
||||||
fs_1.default.rmdirSync(destinationFolder, { recursive: true });
|
fs_1.default.rmdirSync(destinationFolder, { recursive: true });
|
||||||
}
|
}
|
||||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls ${destinationParentFolder}`);
|
|
||||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv "${fullResultsFolder}/${path_1.default.basename(destinationFolder)}" "${destinationParentFolder}"`);
|
yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv "${fullResultsFolder}/${path_1.default.basename(destinationFolder)}" "${destinationParentFolder}"`);
|
||||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls ${destinationParentFolder}`);
|
|
||||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls ${destinationFolder}`);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
remote_client_logger_1.RemoteClientLogger.logWarning(`cache item ${cacheArtifactName} doesn't exist ${destinationFolder}`);
|
remote_client_logger_1.RemoteClientLogger.logWarning(`cache item ${cacheArtifactName} doesn't exist ${destinationFolder}`);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -133,12 +133,9 @@ export class Caching {
|
||||||
if (fs.existsSync(destinationFolder)) {
|
if (fs.existsSync(destinationFolder)) {
|
||||||
fs.rmdirSync(destinationFolder, { recursive: true });
|
fs.rmdirSync(destinationFolder, { recursive: true });
|
||||||
}
|
}
|
||||||
await CloudRunnerSystem.Run(`ls ${destinationParentFolder}`);
|
|
||||||
await CloudRunnerSystem.Run(
|
await CloudRunnerSystem.Run(
|
||||||
`mv "${fullResultsFolder}/${path.basename(destinationFolder)}" "${destinationParentFolder}"`,
|
`mv "${fullResultsFolder}/${path.basename(destinationFolder)}" "${destinationParentFolder}"`,
|
||||||
);
|
);
|
||||||
await CloudRunnerSystem.Run(`ls ${destinationParentFolder}`);
|
|
||||||
await CloudRunnerSystem.Run(`ls ${destinationFolder}`);
|
|
||||||
} else {
|
} else {
|
||||||
RemoteClientLogger.logWarning(`cache item ${cacheArtifactName} doesn't exist ${destinationFolder}`);
|
RemoteClientLogger.logWarning(`cache item ${cacheArtifactName} doesn't exist ${destinationFolder}`);
|
||||||
if (cacheSelection !== ``) {
|
if (cacheSelection !== ``) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue