unzip Library cache to correct project path
parent
fcab2e5dcb
commit
69ee3053d6
|
|
@ -277,6 +277,11 @@ Resources:
|
||||||
Action:
|
Action:
|
||||||
- "cloudformation:DeleteStack"
|
- "cloudformation:DeleteStack"
|
||||||
- "kinesis:DeleteStream"
|
- "kinesis:DeleteStream"
|
||||||
|
- "secretsmanager:DeleteSecret"
|
||||||
|
- "kinesis:DescribeStreamSummary"
|
||||||
|
- "logs:DeleteLogGroup"
|
||||||
|
- "logs:DeleteSubscriptionFilter"
|
||||||
|
- "ecs:DeregisterTaskDefinition"
|
||||||
Resource: "*"
|
Resource: "*"
|
||||||
|
|
||||||
### cloud watch to kinesis role
|
### cloud watch to kinesis role
|
||||||
|
|
|
||||||
|
|
@ -256,13 +256,13 @@ class AWS {
|
||||||
|
|
||||||
latest=$(ls -t | head -1)
|
latest=$(ls -t | head -1)
|
||||||
echo $latest
|
echo $latest
|
||||||
cd ../../
|
|
||||||
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 ./${buildUid}/repo/${buildParameters.projectPath}/Library/.
|
unzip -q $latest -d /data/${buildUid}/repo/${buildParameters.projectPath}/Library/.
|
||||||
else
|
else
|
||||||
echo "Cache does not exist"
|
echo "Cache does not exist"
|
||||||
fi
|
fi
|
||||||
|
cd ../../
|
||||||
|
|
||||||
cd ${buildUid}/repo;
|
cd ${buildUid}/repo;
|
||||||
git checkout $GITHUB_SHA;
|
git checkout $GITHUB_SHA;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -44,13 +44,13 @@ class AWS {
|
||||||
|
|
||||||
latest=$(ls -t | head -1)
|
latest=$(ls -t | head -1)
|
||||||
echo $latest
|
echo $latest
|
||||||
cd ../../
|
|
||||||
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 ./${buildUid}/repo/${buildParameters.projectPath}/Library/.
|
unzip -q $latest -d /data/${buildUid}/repo/${buildParameters.projectPath}/Library/.
|
||||||
else
|
else
|
||||||
echo "Cache does not exist"
|
echo "Cache does not exist"
|
||||||
fi
|
fi
|
||||||
|
cd ../../
|
||||||
|
|
||||||
cd ${buildUid}/repo;
|
cd ${buildUid}/repo;
|
||||||
git checkout $GITHUB_SHA;
|
git checkout $GITHUB_SHA;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue