fixing cache folder
parent
9f291a0838
commit
36b094be8a
|
|
@ -35,7 +35,7 @@ jobs:
|
||||||
- 2019.3.15f1
|
- 2019.3.15f1
|
||||||
targetPlatform:
|
targetPlatform:
|
||||||
#- StandaloneOSX # Build a macOS standalone (Intel 64-bit).
|
#- StandaloneOSX # Build a macOS standalone (Intel 64-bit).
|
||||||
#- StandaloneWindows64 # Build a Windows 64-bit standalone.
|
- StandaloneWindows64 # Build a Windows 64-bit standalone.
|
||||||
- StandaloneLinux64 # Build a Linux 64-bit standalone.
|
- StandaloneLinux64 # Build a Linux 64-bit standalone.
|
||||||
#- iOS # Build an iOS player.
|
#- iOS # Build an iOS player.
|
||||||
#- Android # Build an Android .apk.
|
#- Android # Build an Android .apk.
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ jobs:
|
||||||
# - 2019.2.11f1
|
# - 2019.2.11f1
|
||||||
- 2019.3.15f1
|
- 2019.3.15f1
|
||||||
targetPlatform:
|
targetPlatform:
|
||||||
|
- StandaloneWindows64
|
||||||
- StandaloneLinux64
|
- StandaloneLinux64
|
||||||
steps:
|
steps:
|
||||||
###########################
|
###########################
|
||||||
|
|
|
||||||
|
|
@ -612,26 +612,17 @@ class Caching {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
static handleCachePurging() {
|
static handleCachePurging() {
|
||||||
if (process.env.purgeRemoteCaching !== undefined) {
|
if (process.env.PURGE_REMOTE_BUILDER_CACHE !== undefined) {
|
||||||
remote_client_logger_1.RemoteClientLogger.log(`purging ${cloud_runner_state_1.CloudRunnerState.purgeRemoteCaching}`);
|
remote_client_logger_1.RemoteClientLogger.log(`purging ${cloud_runner_state_1.CloudRunnerState.purgeRemoteCaching}`);
|
||||||
fs_1.default.rmdirSync(cloud_runner_state_1.CloudRunnerState.cacheFolder, { recursive: true });
|
fs_1.default.rmdirSync(cloud_runner_state_1.CloudRunnerState.cacheFolder, { recursive: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
static printFullCacheHierarchySize() {
|
static printFullCacheHierarchySize() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`echo ' '
|
yield cloud_runner_system_1.CloudRunnerSystem.Run(`du -sch "${cloud_runner_state_1.CloudRunnerState.lfsCacheFolderFull}/"`);
|
||||||
echo "LFS cache for $branch"
|
yield cloud_runner_system_1.CloudRunnerSystem.Run(`du -sch "${cloud_runner_state_1.CloudRunnerState.libraryCacheFolderFull}/"`);
|
||||||
du -sch "${cloud_runner_state_1.CloudRunnerState.lfsCacheFolderFull}/"
|
yield cloud_runner_system_1.CloudRunnerSystem.Run(`du -sch "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull}/"`);
|
||||||
echo '**'
|
yield cloud_runner_system_1.CloudRunnerSystem.Run(`du -sch "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull}/../"`);
|
||||||
echo "Library cache for $branch"
|
|
||||||
du -sch "${cloud_runner_state_1.CloudRunnerState.libraryCacheFolderFull}/"
|
|
||||||
echo '**'
|
|
||||||
echo "Branch: $branch"
|
|
||||||
du -sch "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull}/"
|
|
||||||
echo '**'
|
|
||||||
echo 'Full cache'
|
|
||||||
du -sch "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull}/../"
|
|
||||||
echo ' '`);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -101,27 +101,16 @@ export class Caching {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static handleCachePurging() {
|
public static handleCachePurging() {
|
||||||
if (process.env.purgeRemoteCaching !== undefined) {
|
if (process.env.PURGE_REMOTE_BUILDER_CACHE !== undefined) {
|
||||||
RemoteClientLogger.log(`purging ${CloudRunnerState.purgeRemoteCaching}`);
|
RemoteClientLogger.log(`purging ${CloudRunnerState.purgeRemoteCaching}`);
|
||||||
fs.rmdirSync(CloudRunnerState.cacheFolder, { recursive: true });
|
fs.rmdirSync(CloudRunnerState.cacheFolder, { recursive: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static async printFullCacheHierarchySize() {
|
public static async printFullCacheHierarchySize() {
|
||||||
await CloudRunnerSystem.Run(
|
await CloudRunnerSystem.Run(`du -sch "${CloudRunnerState.lfsCacheFolderFull}/"`);
|
||||||
`echo ' '
|
await CloudRunnerSystem.Run(`du -sch "${CloudRunnerState.libraryCacheFolderFull}/"`);
|
||||||
echo "LFS cache for $branch"
|
await CloudRunnerSystem.Run(`du -sch "${CloudRunnerState.cacheFolderFull}/"`);
|
||||||
du -sch "${CloudRunnerState.lfsCacheFolderFull}/"
|
await CloudRunnerSystem.Run(`du -sch "${CloudRunnerState.cacheFolderFull}/../"`);
|
||||||
echo '**'
|
|
||||||
echo "Library cache for $branch"
|
|
||||||
du -sch "${CloudRunnerState.libraryCacheFolderFull}/"
|
|
||||||
echo '**'
|
|
||||||
echo "Branch: $branch"
|
|
||||||
du -sch "${CloudRunnerState.cacheFolderFull}/"
|
|
||||||
echo '**'
|
|
||||||
echo 'Full cache'
|
|
||||||
du -sch "${CloudRunnerState.cacheFolderFull}/../"
|
|
||||||
echo ' '`,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue