purge caching correctly
parent
47e5e0f230
commit
a2257b05b6
|
|
@ -2326,7 +2326,6 @@ class RemoteBuilder {
|
||||||
apk add zip
|
apk add zip
|
||||||
cd Library
|
cd Library
|
||||||
zip -r lib-${buildUid}.zip .*
|
zip -r lib-${buildUid}.zip .*
|
||||||
zip -r lib-${buildUid}.zip .*
|
|
||||||
mv lib-${buildUid}.zip /${buildVolumeFolder}/${cacheFolder}/${branchName}/lib/lib-${buildUid}.zip
|
mv lib-${buildUid}.zip /${buildVolumeFolder}/${cacheFolder}/${branchName}/lib/lib-${buildUid}.zip
|
||||||
cd ../../
|
cd ../../
|
||||||
ls
|
ls
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -6,13 +6,6 @@ libraryFolderFull=$3
|
||||||
gitLFSDestinationFolder=$4
|
gitLFSDestinationFolder=$4
|
||||||
purgeRemoteBuilderCache=$5
|
purgeRemoteBuilderCache=$5
|
||||||
|
|
||||||
echo " "
|
|
||||||
echo "Caching starting, parameters:"
|
|
||||||
echo "$cacheFolderFull"
|
|
||||||
echo "$branchName"
|
|
||||||
echo "$libraryFolderFull"
|
|
||||||
echo "$purgeRemoteBuilderCache"
|
|
||||||
|
|
||||||
cacheFolderWithBranch="$cacheFolderFull/$branchName"
|
cacheFolderWithBranch="$cacheFolderFull/$branchName"
|
||||||
|
|
||||||
echo " "
|
echo " "
|
||||||
|
|
@ -56,6 +49,6 @@ fi
|
||||||
|
|
||||||
# purge cache
|
# purge cache
|
||||||
if [ "$purgeRemoteBuilderCache" == "true" ]; then
|
if [ "$purgeRemoteBuilderCache" == "true" ]; then
|
||||||
rm -r "$libraryFolderFull"
|
rm -r "$cacheFolderFull"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue