handle cleanup errors
parent
a1fd1308e5
commit
291e241898
|
|
@ -258,10 +258,14 @@ class AWS {
|
||||||
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}"
|
||||||
mkdir /data/${buildUid}/repo/${buildParameters.projectPath}/Library
|
mkdir /data/${buildUid}/repo/${buildParameters.projectPath}/Library
|
||||||
unzip -q $latest -d /data/${buildUid}/repo/${buildParameters.projectPath}/Library/.
|
unzip -q "$latest" -d /data/${buildUid}/repo/${buildParameters.projectPath}/Library/.
|
||||||
|
echo ' '
|
||||||
ls /data/${buildUid}/repo/
|
ls /data/${buildUid}/repo/
|
||||||
|
echo ' '
|
||||||
ls /data/${buildUid}/repo/${buildParameters.projectPath}
|
ls /data/${buildUid}/repo/${buildParameters.projectPath}
|
||||||
|
echo ' '
|
||||||
ls /data/${buildUid}/repo/${buildParameters.projectPath}/Library/
|
ls /data/${buildUid}/repo/${buildParameters.projectPath}/Library/
|
||||||
|
echo ' '
|
||||||
else
|
else
|
||||||
echo "Cache does not exist"
|
echo "Cache does not exist"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -46,10 +46,14 @@ class AWS {
|
||||||
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}"
|
||||||
mkdir /data/${buildUid}/repo/${buildParameters.projectPath}/Library
|
mkdir /data/${buildUid}/repo/${buildParameters.projectPath}/Library
|
||||||
unzip -q $latest -d /data/${buildUid}/repo/${buildParameters.projectPath}/Library/.
|
unzip -q "$latest" -d /data/${buildUid}/repo/${buildParameters.projectPath}/Library/.
|
||||||
|
echo ' '
|
||||||
ls /data/${buildUid}/repo/
|
ls /data/${buildUid}/repo/
|
||||||
|
echo ' '
|
||||||
ls /data/${buildUid}/repo/${buildParameters.projectPath}
|
ls /data/${buildUid}/repo/${buildParameters.projectPath}
|
||||||
|
echo ' '
|
||||||
ls /data/${buildUid}/repo/${buildParameters.projectPath}/Library/
|
ls /data/${buildUid}/repo/${buildParameters.projectPath}/Library/
|
||||||
|
echo ' '
|
||||||
else
|
else
|
||||||
echo "Cache does not exist"
|
echo "Cache does not exist"
|
||||||
fi
|
fi
|
||||||
|
|
@ -463,8 +467,7 @@ class AWS {
|
||||||
if (exitCode !== 0) {
|
if (exitCode !== 0) {
|
||||||
try {
|
try {
|
||||||
await this.cleanupResources(CF, taskDef);
|
await this.cleanupResources(CF, taskDef);
|
||||||
}
|
} catch (error) {
|
||||||
catch (error) {
|
|
||||||
core.warning(`failed to cleanup ${error}`);
|
core.warning(`failed to cleanup ${error}`);
|
||||||
}
|
}
|
||||||
core.error(`job failed with exit code ${exitCode}`);
|
core.error(`job failed with exit code ${exitCode}`);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue