BUCKET_NAME=$1
REGION=$2
cd ./jazz-core/cloud-api-onboarding-webapp
sudo npm install -g @angular/cli
sudo npm install
sudo ng build –prod
ls -l ./dist
cd ./dist
aws s3 cp . s3://$BUCKET_NAME  --recursive --region $REGION

IFS=$(echo -en "\n\b")
for key in $( find . \( -not -type d \) -print | sed 's/^.\///g' ); do
    echo item: $key
         aws s3api put-object-acl --bucket $BUCKET_NAME --key $key --grant-full-control id=78d7d8174c655d51683784593fe4e6f74a7ed3fae3127d2beca2ad39e4fdc79a,uri=http://acs.amazonaws.com/groups/s3/LogDelivery,uri=http://acs.amazonaws.com/groups/global/AuthenticatedUsers --grant-read uri=http://acs.amazonaws.com/groups/global/AllUsers   --grant-read-acp uri=http://acs.amazonaws.com/groups/global/AllUsers
done
cd -




BUCKET_NAME=$1
REGION=$2
cd ./jazz-ui
sudo npm install -g @angular/cli
sudo npm install
sudo ng build –prod
ls -l ./dist
cd ./dist
aws s3 cp . s3://$BUCKET_NAME  --recursive --region $REGION

IFS=$(echo -en "\n\b")
for key in $( find . \( -not -type d \) -print | sed 's/^.\///g' ); do
    echo item: $key
         aws s3api put-object-acl --bucket $BUCKET_NAME --key $key --grant-full-control id=78d7d8174c655d51683784593fe4e6f74a7ed3fae3127d2beca2ad39e4fdc79a,uri=http://acs.amazonaws.com/groups/s3/LogDelivery,uri=http://acs.amazonaws.com/groups/global/AuthenticatedUsers --grant-read uri=http://acs.amazonaws.com/groups/global/AllUsers   --grant-read-acp uri=http://acs.amazonaws.com/groups/global/AllUsers
done
cd -




Change the folder to jazz-ui
Change the folder to jazz-ui

Former-commit-id: d08f0cdb9230a30612a16134fc99f5dea9be0d63