diff --git a/dist/remote-builder/handleCaching.sh b/dist/remote-builder/handleCaching.sh index e8471583..26758ad2 100755 --- a/dist/remote-builder/handleCaching.sh +++ b/dist/remote-builder/handleCaching.sh @@ -60,20 +60,26 @@ if [ ! -f "$lfsCacheFolder/$latestLFSCacheFile" ]; then unzip "$lfsCacheFolder/$latestLFSCacheFile" -d "$gitLFSDestinationFolder" fi + echo ' ' echo 'Size of LFS cache folder for this branch' du -sch "$lfsCacheFolder" +echo ' ' echo 'Size of Library cache folder for this branch' du -sch "$libraryCacheFolder" echo ' ' - echo 'Size of cache folder for this branch' du -sch "$cacheFolderWithBranch" echo ' ' - -echo 'Size of LFS cache folder' +echo 'Size of cache folder' du -sch "$cacheFolderFull" echo ' ' +git lfs pull +echo 'pulled latest LFS files' +zip -r "$LFS_ASSETS_HASH.zip" "$gitLFSDestinationFolder" +cp "$LFS_ASSETS_HASH.zip" "$lfsCacheFolder" +echo "copied $LFS_ASSETS_HASH to $lfsCacheFolder" +echo ' ' # purge cache if [ "$purgeRemoteBuilderCache" == "true" ]; then @@ -82,9 +88,3 @@ if [ "$purgeRemoteBuilderCache" == "true" ]; then echo ' ' fi -git lfs pull -zip -r "$LFS_ASSETS_HASH.zip" "$gitLFSDestinationFolder" -cp "$LFS_ASSETS_HASH.zip" "$lfsCacheFolder" -echo "copied $LFS_ASSETS_HASH to $lfsCacheFolder" - -echo ' '