unzip Library cache to correct project path

pull/235/head
mdugdale 2021-04-03 19:48:05 +01:00
parent fcab2e5dcb
commit 69ee3053d6
4 changed files with 10 additions and 5 deletions

5
dist/base-setup.yml vendored
View File

@ -277,6 +277,11 @@ Resources:
Action:
- "cloudformation:DeleteStack"
- "kinesis:DeleteStream"
- "secretsmanager:DeleteSecret"
- "kinesis:DescribeStreamSummary"
- "logs:DeleteLogGroup"
- "logs:DeleteSubscriptionFilter"
- "ecs:DeregisterTaskDefinition"
Resource: "*"
### cloud watch to kinesis role

4
dist/index.js vendored
View File

@ -256,13 +256,13 @@ class AWS {
latest=$(ls -t | head -1)
echo $latest
cd ../../
if [ ! -z $latest ]; then
echo "Library cache exists from build $latest from $branchName"
unzip -q $latest -d ./${buildUid}/repo/${buildParameters.projectPath}/Library/.
unzip -q $latest -d /data/${buildUid}/repo/${buildParameters.projectPath}/Library/.
else
echo "Cache does not exist"
fi
cd ../../
cd ${buildUid}/repo;
git checkout $GITHUB_SHA;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -44,13 +44,13 @@ class AWS {
latest=$(ls -t | head -1)
echo $latest
cd ../../
if [ ! -z $latest ]; then
echo "Library cache exists from build $latest from $branchName"
unzip -q $latest -d ./${buildUid}/repo/${buildParameters.projectPath}/Library/.
unzip -q $latest -d /data/${buildUid}/repo/${buildParameters.projectPath}/Library/.
else
echo "Cache does not exist"
fi
cd ../../
cd ${buildUid}/repo;
git checkout $GITHUB_SHA;