cleanup
parent
f75e57e55c
commit
74d81a4adf
|
|
@ -260,17 +260,17 @@ class AWS {
|
||||||
echo "Cached Libraries for ${branchName} from previous builds:"
|
echo "Cached Libraries for ${branchName} from previous builds:"
|
||||||
ls
|
ls
|
||||||
echo " "
|
echo " "
|
||||||
libDir="/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library"
|
|
||||||
if [ -d "$libDir" ]; then
|
|
||||||
echo "Library folder already present, make sure you setup .gitignore correctly"
|
|
||||||
echo "Cleaning out Library folder for this build"
|
|
||||||
rm -r "$libDir"
|
|
||||||
fi
|
|
||||||
echo 'Checking cache'
|
echo 'Checking cache'
|
||||||
# Restore cache
|
# Restore cache
|
||||||
latest=$(ls -t | head -1)
|
latest=$(ls -t | head -1)
|
||||||
if [ ! -z "$latest" ]; then
|
if [ ! -z "$latest" ]; then
|
||||||
echo 'Library cache exists from build $latest from ${branchName}'
|
echo "Library cache exists from build $latest from ${branchName}"
|
||||||
|
libDir="/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library"
|
||||||
|
if [ -d "$libDir" ]; then
|
||||||
|
echo "Library folder already present, make sure you setup .gitignore correctly"
|
||||||
|
echo "Cleaning out Library folder for this build"
|
||||||
|
rm -r "$libDir"
|
||||||
|
fi
|
||||||
echo 'Creating empty Library folder for cache'
|
echo 'Creating empty Library folder for cache'
|
||||||
mkdir "$libDir"
|
mkdir "$libDir"
|
||||||
unzip -q '$latest' -d '/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.'
|
unzip -q '$latest' -d '/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.'
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -48,17 +48,17 @@ class AWS {
|
||||||
echo "Cached Libraries for ${branchName} from previous builds:"
|
echo "Cached Libraries for ${branchName} from previous builds:"
|
||||||
ls
|
ls
|
||||||
echo " "
|
echo " "
|
||||||
libDir="/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library"
|
|
||||||
if [ -d "$libDir" ]; then
|
|
||||||
echo "Library folder already present, make sure you setup .gitignore correctly"
|
|
||||||
echo "Cleaning out Library folder for this build"
|
|
||||||
rm -r "$libDir"
|
|
||||||
fi
|
|
||||||
echo 'Checking cache'
|
echo 'Checking cache'
|
||||||
# Restore cache
|
# Restore cache
|
||||||
latest=$(ls -t | head -1)
|
latest=$(ls -t | head -1)
|
||||||
if [ ! -z "$latest" ]; then
|
if [ ! -z "$latest" ]; then
|
||||||
echo 'Library cache exists from build $latest from ${branchName}'
|
echo "Library cache exists from build $latest from ${branchName}"
|
||||||
|
libDir="/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library"
|
||||||
|
if [ -d "$libDir" ]; then
|
||||||
|
echo "Library folder already present, make sure you setup .gitignore correctly"
|
||||||
|
echo "Cleaning out Library folder for this build"
|
||||||
|
rm -r "$libDir"
|
||||||
|
fi
|
||||||
echo 'Creating empty Library folder for cache'
|
echo 'Creating empty Library folder for cache'
|
||||||
mkdir "$libDir"
|
mkdir "$libDir"
|
||||||
unzip -q '$latest' -d '/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.'
|
unzip -q '$latest' -d '/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue