mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Use same S3 WORM bucket for all builds
This commit is contained in:
@@ -8,6 +8,11 @@ pushd "$(dirname "${BASH_SOURCE[0]}")/../"
|
||||
pip install awscli
|
||||
printf "${CREATE_BUCKET_AWS_ACCESS_KEY}\n${CREATE_BUCKET_AWS_SECRET_KEY}\n\n\n" | aws configure
|
||||
|
||||
if aws s3 ls | awk '{print $3}' | grep -q "^${S3_BUCKET2_NAME}$" ; then
|
||||
echo "Bucket ${S3_BUCKET2_NAME} already exists"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
aws s3api create-bucket --bucket "${S3_BUCKET2_NAME}" --region ${S3_BUCKET_REGION} --object-lock-enabled-for-bucket
|
||||
aws s3api put-object-lock-configuration \
|
||||
--bucket "${S3_BUCKET2_NAME}" \
|
||||
|
@@ -12,7 +12,7 @@ env:
|
||||
- AWS_SECRET_ACCESS_KEY=${CREATE_BUCKET_AWS_SECRET_KEY}
|
||||
- S3_BUCKET_REGION="us-east-1"
|
||||
- S3_BUCKET_NAME="travis-ags-${TRAVIS_JOB_NUMBER}"
|
||||
- S3_BUCKET2_NAME="travis-ags-worm-${TRAVIS_JOB_NUMBER}-b2"
|
||||
- S3_BUCKET2_NAME="travis-ags-worm-b2"
|
||||
- ALFRESCO_URL="http://localhost:8080/alfresco"
|
||||
- SHARE_URL="http://localhost:8181/share"
|
||||
- DISPLAY=:99.0
|
||||
|
Reference in New Issue
Block a user