read latest library cache correctly
parent
e12185be81
commit
84c1ad2ca0
|
|
@ -2179,7 +2179,7 @@ class RemoteBuilder {
|
|||
echo 'Cloned ${repo2}'
|
||||
#
|
||||
echo ' '
|
||||
echo 'Cloning main repo'
|
||||
echo 'Cloning main repo without LFS'
|
||||
${initializeSourceRepoForCaching}
|
||||
echo ' '
|
||||
echo 'cache pull'
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -5,14 +5,14 @@ branchName=$2
|
|||
libraryFolderFull=$3
|
||||
purgeRemoteBuilderCache=$4
|
||||
|
||||
echo ""
|
||||
echo " "
|
||||
echo "Caching starting, parameters:"
|
||||
echo "$cacheFolderFull"
|
||||
echo "$branchName"
|
||||
echo "$libraryFolderFull"
|
||||
echo "$purgeRemoteBuilderCache"
|
||||
|
||||
echo ""
|
||||
echo " "
|
||||
# handle library cache
|
||||
if [ ! -d "$cacheFolderFull" ]; then
|
||||
echo "creating new cache folder $cacheFolderFull"
|
||||
|
|
@ -40,7 +40,7 @@ fi
|
|||
echo "Checking cache"
|
||||
|
||||
# Restore library cache
|
||||
latest=$(ls -t $cacheDir | head -1)
|
||||
latest=$(ls -t "$cacheFolderFull/$branchName" | head -1)
|
||||
if [ ! -z "$latest" ]; then
|
||||
echo "Library cache exists from build $latest from $branchName"
|
||||
echo 'Creating empty Library folder for cache'
|
||||
|
|
|
|||
Loading…
Reference in New Issue