cleanup
parent
d645916e41
commit
64c8d755f8
|
|
@ -265,6 +265,7 @@ class AWS {
|
||||||
|
|
||||||
# if library directory doesn't exist create it,
|
# if library directory doesn't exist create it,
|
||||||
if [ ! -d "/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library" ]; then
|
if [ ! -d "/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library" ]; then
|
||||||
|
echo 'Creating Library folder'
|
||||||
mkdir "/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library"
|
mkdir "/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library"
|
||||||
else
|
else
|
||||||
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)!'
|
||||||
|
|
@ -273,7 +274,7 @@ class AWS {
|
||||||
|
|
||||||
# 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}"
|
||||||
unzip -q "$latest" -d /${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.
|
unzip -q "$latest" -d /${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.
|
||||||
else
|
else
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -53,6 +53,7 @@ class AWS {
|
||||||
|
|
||||||
# if library directory doesn't exist create it,
|
# if library directory doesn't exist create it,
|
||||||
if [ ! -d "/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library" ]; then
|
if [ ! -d "/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library" ]; then
|
||||||
|
echo 'Creating Library folder'
|
||||||
mkdir "/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library"
|
mkdir "/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library"
|
||||||
else
|
else
|
||||||
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)!'
|
||||||
|
|
@ -61,7 +62,7 @@ class AWS {
|
||||||
|
|
||||||
# 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}"
|
||||||
unzip -q "$latest" -d /${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.
|
unzip -q "$latest" -d /${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue