cleanup
parent
5adb9c2222
commit
33415fc1a6
|
|
@ -265,23 +265,18 @@ class AWS {
|
||||||
|
|
||||||
libDir="/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library"
|
libDir="/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library"
|
||||||
|
|
||||||
echo $libDir
|
|
||||||
|
|
||||||
ls "/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}"
|
|
||||||
|
|
||||||
# if library directory doesn't exist create it,
|
# if library directory doesn't exist create it,
|
||||||
if [ -d $libDir ]; then
|
if [ -d $libDir ]; then
|
||||||
echo "Library folder already present, make sure you setup .gitignore correctly (cleaning out Library folder for this build)!"
|
echo "Library folder already present, make sure you setup .gitignore correctly (cleaning out Library folder for this build)!"
|
||||||
rm -r $libDir
|
rm -r $libDir
|
||||||
else
|
|
||||||
echo "Creating Library folder"
|
|
||||||
mkdir $libDir
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 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}"
|
||||||
|
echo "Creating empty Library folder for cache"
|
||||||
|
mkdir $libDir
|
||||||
unzip -q "$latest" -d /${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.
|
unzip -q "$latest" -d /${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.
|
||||||
else
|
else
|
||||||
echo "Cache does not exist"
|
echo "Cache does not exist"
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -53,23 +53,18 @@ class AWS {
|
||||||
|
|
||||||
libDir="/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library"
|
libDir="/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library"
|
||||||
|
|
||||||
echo $libDir
|
|
||||||
|
|
||||||
ls "/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}"
|
|
||||||
|
|
||||||
# if library directory doesn't exist create it,
|
# if library directory doesn't exist create it,
|
||||||
if [ -d $libDir ]; then
|
if [ -d $libDir ]; then
|
||||||
echo "Library folder already present, make sure you setup .gitignore correctly (cleaning out Library folder for this build)!"
|
echo "Library folder already present, make sure you setup .gitignore correctly (cleaning out Library folder for this build)!"
|
||||||
rm -r $libDir
|
rm -r $libDir
|
||||||
else
|
|
||||||
echo "Creating Library folder"
|
|
||||||
mkdir $libDir
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 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}"
|
||||||
|
echo "Creating empty Library folder for cache"
|
||||||
|
mkdir $libDir
|
||||||
unzip -q "$latest" -d /${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.
|
unzip -q "$latest" -d /${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.
|
||||||
else
|
else
|
||||||
echo "Cache does not exist"
|
echo "Cache does not exist"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue