fix
parent
85af8c8e54
commit
ee250a1222
|
|
@ -2180,7 +2180,6 @@ class RemoteBuilder {
|
|||
echo ' '
|
||||
echo 'Initializing source repository for cloning with caching of LFS files'
|
||||
${initializeSourceRepoForCaching}
|
||||
export LFS_ASSETS_HASH=$(cat ".lfs-assets-id-sum")
|
||||
echo ' '
|
||||
echo 'Large File before LFS caching and pull'
|
||||
ls -alh "${testLFSFile}"
|
||||
|
|
@ -2196,8 +2195,8 @@ class RemoteBuilder {
|
|||
echo ' '
|
||||
#
|
||||
echo 'buildVolumeReport.txt and buildVolumeReport.txt saved to repository workspace directory'
|
||||
tree -L 3 ${this.buildPathFull} > ${this.repoPathFull}/buildVolumeReport.txt
|
||||
ls -lh /${buildVolumeFolder} > ${this.repoPathFull}/buildVolumeReport.txt
|
||||
tree -L 3 ${this.buildPathFull} > ${this.repoPathFull}/preBuildVolumeReport.txt
|
||||
ls -lh /${buildVolumeFolder} > ${this.repoPathFull}/preBuildVolumeReport.txt
|
||||
echo ' '
|
||||
#
|
||||
`,
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -25,4 +25,6 @@ echo ' '
|
|||
echo 'Contents of .lfs-assets-id-sum file:'
|
||||
cat .lfs-assets-id-sum
|
||||
|
||||
export LFS_ASSETS_HASH="$(cat .lfs-assets-id)"
|
||||
|
||||
echo ' '
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
cacheFolderFull=$1
|
||||
branchName=$2
|
||||
cacheKey=$2
|
||||
libraryFolderFull=$3
|
||||
gitLFSDestinationFolder=$4
|
||||
purgeRemoteBuilderCache=$5
|
||||
|
||||
cacheFolderWithBranch="$cacheFolderFull/$branchName"
|
||||
lfsCacheFolder="$cacheFolderFull/$branchName/lfs"
|
||||
libraryCacheFolder="$cacheFolderFull/$branchName/lib"
|
||||
cacheFolderWithBranch="$cacheFolderFull/$cacheKey"
|
||||
lfsCacheFolder="$cacheFolderFull/$cacheKey/lfs"
|
||||
libraryCacheFolder="$cacheFolderFull/$cacheKey/lib"
|
||||
|
||||
echo ' '
|
||||
|
||||
echo "LFS cache for branch: $branchName"
|
||||
echo "LFS cache for branch: $cacheKey"
|
||||
mkdir -p "$lfsCacheFolder"
|
||||
ls -lh "$lfsCacheFolder"
|
||||
|
||||
echo ' '
|
||||
|
||||
echo "Library cache for branch: $branchName"
|
||||
echo "Library cache for branch: $cacheKey"
|
||||
mkdir -p "$libraryCacheFolder"
|
||||
ls -lh "$libraryCacheFolder"
|
||||
|
||||
|
|
@ -36,11 +36,9 @@ echo "Checking cache"
|
|||
latestLibraryCacheFile=$(ls -t "$libraryCacheFolder" | grep .zip$ | head -1)
|
||||
|
||||
if [ ! -z "$latestLibraryCacheFile" ]; then
|
||||
echo "Library cache exists from build $latestLibraryCacheFile from $branchName"
|
||||
echo 'Creating empty Library folder for cache'
|
||||
echo "Library cache exists from build $latestLibraryCacheFile from $cacheKey"
|
||||
mkdir -p "$libraryFolderFull"
|
||||
unzip -q "$libraryCacheFolder/$latestLibraryCacheFile" -d "$libraryFolderFull"
|
||||
echo 'Unzipped library'
|
||||
fi
|
||||
|
||||
echo "Checking cache for a cache match based on the combined large files hash ($lfsCacheFolder/$LFS_ASSETS_HASH.zip)"
|
||||
|
|
@ -55,7 +53,7 @@ fi
|
|||
|
||||
|
||||
if [ ! -f "$lfsCacheFolder/$latestLFSCacheFile" ]; then
|
||||
echo "LFS cache exists from build $latestLFSCacheFile from $branchName"
|
||||
echo "LFS cache exists from build $latestLFSCacheFile from $cacheKey"
|
||||
rm -r "$gitLFSDestinationFolder"
|
||||
mkdir -p "$gitLFSDestinationFolder"
|
||||
unzip -q "$lfsCacheFolder/$latestLFSCacheFile" -d "$gitLFSDestinationFolder"
|
||||
|
|
|
|||
|
|
@ -135,7 +135,6 @@ class RemoteBuilder {
|
|||
echo ' '
|
||||
echo 'Initializing source repository for cloning with caching of LFS files'
|
||||
${initializeSourceRepoForCaching}
|
||||
export LFS_ASSETS_HASH=$(cat ".lfs-assets-id-sum")
|
||||
echo ' '
|
||||
echo 'Large File before LFS caching and pull'
|
||||
ls -alh "${testLFSFile}"
|
||||
|
|
@ -151,8 +150,8 @@ class RemoteBuilder {
|
|||
echo ' '
|
||||
#
|
||||
echo 'buildVolumeReport.txt and buildVolumeReport.txt saved to repository workspace directory'
|
||||
tree -L 3 ${this.buildPathFull} > ${this.repoPathFull}/buildVolumeReport.txt
|
||||
ls -lh /${buildVolumeFolder} > ${this.repoPathFull}/buildVolumeReport.txt
|
||||
tree -L 3 ${this.buildPathFull} > ${this.repoPathFull}/preBuildVolumeReport.txt
|
||||
ls -lh /${buildVolumeFolder} > ${this.repoPathFull}/preBuildVolumeReport.txt
|
||||
echo ' '
|
||||
#
|
||||
`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue