purge caching correctly

pull/273/head
Frostebite 2021-07-31 22:48:02 +01:00
parent 47e5e0f230
commit a2257b05b6
3 changed files with 2 additions and 10 deletions

1
dist/index.js vendored
View File

@ -2326,7 +2326,6 @@ class RemoteBuilder {
apk add zip
cd Library
zip -r lib-${buildUid}.zip .*
zip -r lib-${buildUid}.zip .*
mv lib-${buildUid}.zip /${buildVolumeFolder}/${cacheFolder}/${branchName}/lib/lib-${buildUid}.zip
cd ../../
ls

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -6,13 +6,6 @@ libraryFolderFull=$3
gitLFSDestinationFolder=$4
purgeRemoteBuilderCache=$5
echo " "
echo "Caching starting, parameters:"
echo "$cacheFolderFull"
echo "$branchName"
echo "$libraryFolderFull"
echo "$purgeRemoteBuilderCache"
cacheFolderWithBranch="$cacheFolderFull/$branchName"
echo " "
@ -56,6 +49,6 @@ fi
# purge cache
if [ "$purgeRemoteBuilderCache" == "true" ]; then
rm -r "$libraryFolderFull"
rm -r "$cacheFolderFull"
fi