APPS-261 Put tags on the S3 test buckets

This commit is contained in:
Cezar.Leahu
2020-08-18 16:12:54 +03:00
parent 2540969052
commit ea775b9c88
4 changed files with 10 additions and 11 deletions

View File

@@ -13,10 +13,10 @@ docker ps -a -q | xargs -l -r docker rm
pip install awscli
printf "${CREATE_BUCKET_AWS_ACCESS_KEY}\n${CREATE_BUCKET_AWS_SECRET_KEY}\n\n\n" | aws configure
BUCKET_NAME="travis-ags-${TRAVIS_JOB_NUMBER}"
S3_BUCKET_NAME="travis-ags-${TRAVIS_JOB_NUMBER}"
S3_BUCKET2_NAME="travis-ags-worm-${TRAVIS_JOB_NUMBER}-b2"
aws s3 ls | awk '{print $3}' | grep "^${BUCKET_NAME}" | xargs -l -r -I{} aws s3 rb "s3://{}" --force
aws s3 ls | awk '{print $3}' | grep "^${S3_BUCKET_NAME}" | xargs -l -r -I{} aws s3 rb "s3://{}" --force
aws s3 ls | awk '{print $3}' | grep "^${S3_BUCKET2_NAME}" | xargs -l -r -I{} aws s3 rb "s3://{}" --force
popd