cleanup and corrections
parent
88c4b1efee
commit
20e0c9a7a8
|
|
@ -15,6 +15,9 @@ echo ' '
|
||||||
echo "LFS cache for branch: $branchName"
|
echo "LFS cache for branch: $branchName"
|
||||||
mkdir -p "$lfsCacheFolder"
|
mkdir -p "$lfsCacheFolder"
|
||||||
ls -lh "$lfsCacheFolder"
|
ls -lh "$lfsCacheFolder"
|
||||||
|
|
||||||
|
echo ' '
|
||||||
|
|
||||||
echo "Library cache for branch: $branchName"
|
echo "Library cache for branch: $branchName"
|
||||||
mkdir -p "$libraryCacheFolder"
|
mkdir -p "$libraryCacheFolder"
|
||||||
ls -lh "$libraryCacheFolder"
|
ls -lh "$libraryCacheFolder"
|
||||||
|
|
@ -53,20 +56,24 @@ if [ ! -z "$latestLFSCacheFile" ]; then
|
||||||
unzip -q "$cacheFolderWithBranch/lfs/$latestLFSCacheFile" -d "$gitLFSDestinationFolder"
|
unzip -q "$cacheFolderWithBranch/lfs/$latestLFSCacheFile" -d "$gitLFSDestinationFolder"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo " "
|
||||||
du -sch "$cacheFolderWithBranch/lfs"
|
du -sch "$cacheFolderWithBranch/lfs"
|
||||||
|
|
||||||
du -sch "$cacheFolderWithBranch/lib"
|
du -sch "$cacheFolderWithBranch/lib"
|
||||||
|
echo " "
|
||||||
du -sch "$cacheFolderWithBranch"
|
du -sch "$cacheFolderWithBranch"
|
||||||
|
echo " "
|
||||||
du -sch "$cacheFolderFull"
|
du -sch "$cacheFolderFull"
|
||||||
|
echo " "
|
||||||
|
|
||||||
echo "purge $purgeRemoteBuilderCache"
|
echo "purge $purgeRemoteBuilderCache"
|
||||||
# purge cache
|
# purge cache
|
||||||
if [ "$purgeRemoteBuilderCache" == "true" ]; then
|
if [ "$purgeRemoteBuilderCache" == "true" ]; then
|
||||||
rm -r "$cacheFolderFull"
|
rm -r "$cacheFolderFull"
|
||||||
fi
|
fi
|
||||||
|
echo " "
|
||||||
|
|
||||||
git lfs pull
|
git lfs pull
|
||||||
zip -r $LFS_ASSETS_HASH "${lfsDirectory}"
|
zip -r $LFS_ASSETS_HASH "${lfsDirectory}"
|
||||||
cp $LFS_ASSETS_HASH "${cacheFolderFull}/${branchName}/lfs"
|
cp $LFS_ASSETS_HASH "${cacheFolderFull}/${branchName}/lfs"
|
||||||
|
|
||||||
|
echo " "
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue