cleanup
parent
801cf9c58e
commit
298476ae2f
|
|
@ -260,22 +260,22 @@ class AWS {
|
|||
echo 'Cached Libraries for ${branchName} from previous builds:'
|
||||
ls
|
||||
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"
|
||||
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
|
||||
latest=$(ls -t | head -1)
|
||||
if [ ! -z "$latest" ]; then
|
||||
echo "Library cache exists from build $latest from ${branchName}"
|
||||
echo "Creating empty Library folder for cache"
|
||||
mkdir "$libDir"
|
||||
unzip -q "$latest" -d /${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.
|
||||
if [ ! -z '$latest' ]; then
|
||||
echo 'Library cache exists from build $latest from ${branchName}'
|
||||
echo 'Creating empty Library folder for cache'
|
||||
mkdir '$libDir'
|
||||
unzip -q $latest -d /${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.
|
||||
else
|
||||
echo "Cache does not exist"
|
||||
echo 'Cache does not exist'
|
||||
fi
|
||||
# Print out important directories
|
||||
echo ' '
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -48,22 +48,22 @@ class AWS {
|
|||
echo 'Cached Libraries for ${branchName} from previous builds:'
|
||||
ls
|
||||
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"
|
||||
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
|
||||
latest=$(ls -t | head -1)
|
||||
if [ ! -z "$latest" ]; then
|
||||
echo "Library cache exists from build $latest from ${branchName}"
|
||||
echo "Creating empty Library folder for cache"
|
||||
mkdir "$libDir"
|
||||
unzip -q "$latest" -d /${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.
|
||||
if [ ! -z '$latest' ]; then
|
||||
echo 'Library cache exists from build $latest from ${branchName}'
|
||||
echo 'Creating empty Library folder for cache'
|
||||
mkdir '$libDir'
|
||||
unzip -q $latest -d /${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.
|
||||
else
|
||||
echo "Cache does not exist"
|
||||
echo 'Cache does not exist'
|
||||
fi
|
||||
# Print out important directories
|
||||
echo ' '
|
||||
|
|
|
|||
Loading…
Reference in New Issue