ci-dockerfiles-deployment/builders.sh: Fetch trustedfirmware-fvp S3 bucket

The idea is to make files contained in it available to individual images'
build.sh scripts.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: I2ea6c165f02675faf4bec2abcd794576b774f848
diff --git a/ci-dockerfiles-deployment/builders.sh b/ci-dockerfiles-deployment/builders.sh
index a5b112c..04ea34b 100644
--- a/ci-dockerfiles-deployment/builders.sh
+++ b/ci-dockerfiles-deployment/builders.sh
@@ -8,9 +8,21 @@
 env |grep '^GERRIT'
 echo "########################################################################"
 
+if ! type aws
+then
+    sudo apt-get -y -qq update
+    sudo apt-get -y -qq install --no-install-recommends unzip
+    curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
+    unzip awscliv2.zip
+    sudo ./aws/install
+fi
+
 rm -f ${WORKSPACE}/log
 cd dockerfiles/
 
+aws configure list
+aws s3 cp --recursive s3://trustedfirmware-fvp/ .
+
 git_previous_commit=$(git rev-parse HEAD~1)
 git_commit=$(git rev-parse HEAD)
 files=$(git diff --name-only ${git_previous_commit} ${git_commit})