debug logging
parent
fc6d6113cb
commit
8bceae8067
|
|
@ -43,16 +43,18 @@ if [ ! -z "$latestLibraryCacheFile" ]; then
|
||||||
echo 'Unzipped library'
|
echo 'Unzipped library'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
latestLFSCacheFile=$(ls -t "$lfsCacheFolder" | grep .zip$ | head -1)
|
echo "Checking cache for a cache match based on the combined large files hash ($lfsCacheFolder/$LFS_ASSETS_HASH.zip)"
|
||||||
|
|
||||||
echo "Checking cache for an exact match of LFS hash or using $latestLFSCacheFile"
|
|
||||||
|
|
||||||
if [ ! -v "$LFS_ASSETS_HASH" ] && [ -f "$lfsCacheFolder/$LFS_ASSETS_HASH.zip" ]; then
|
if [ ! -v "$LFS_ASSETS_HASH" ] && [ -f "$lfsCacheFolder/$LFS_ASSETS_HASH.zip" ]; then
|
||||||
echo "Exact LFS hash match"
|
echo "Match found: using large file hash match $LFS_ASSETS_HASH.zip"
|
||||||
latestLFSCacheFile="$LFS_ASSETS_HASH.zip"
|
latestLFSCacheFile="$LFS_ASSETS_HASH.zip"
|
||||||
|
else
|
||||||
|
latestLFSCacheFile=$(ls -t "$lfsCacheFolder" | grep .zip$ | head -1)
|
||||||
|
echo "Match not found: using latest large file cache $latestLFSCacheFile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z "$lfsCacheFolder/$latestLFSCacheFile" ]; then
|
|
||||||
|
if [ ! -f "$lfsCacheFolder/$latestLFSCacheFile" ]; then
|
||||||
echo "LFS cache exists from build $latestLFSCacheFile from $branchName"
|
echo "LFS cache exists from build $latestLFSCacheFile from $branchName"
|
||||||
echo "$gitLFSDestinationFolder"
|
echo "$gitLFSDestinationFolder"
|
||||||
rm -r "$gitLFSDestinationFolder"
|
rm -r "$gitLFSDestinationFolder"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue