Skip to content

Commit

Permalink
Jenkins: upload-bundles: allow public-read for development S3 bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
shr-project committed Sep 17, 2021
1 parent a3e0f95 commit 816086a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Jenkins/Jenkinsfile-Bundles
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pipeline {
DISPLAY = ":0"
JENKINS_BUILD_ID = "${BUILD_ID}"
S3_DOWNLOAD_HOST = "${S3_DOWNLOAD_HOST}/v2"
S3_BUCKET_ACL = "--acl public-read"
}

stages {
Expand Down
1 change: 1 addition & 0 deletions Jenkins/Jenkinsfile-Bundles-Release
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ pipeline {
GIT_TAG = "${GIT_TAG}"
S3_DOWNLOAD_HOST = "${S3_RELEASE_DOWNLOAD_HOST}"
S3_BUCKET_NAME = "${S3_RELEASE_BUCKET_NAME}"
S3_BUCKET_ACL = ""
}

stages {
Expand Down
1 change: 1 addition & 0 deletions Jenkins/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ services:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- S3_BUCKET_NAME
- S3_BUCKET_ACL
- GIT_COMMIT
volumes:
- ..:/mnt
Expand Down
2 changes: 1 addition & 1 deletion Jenkins/upload-bundles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function uploadAssets()
echo "$1" | while IFS= read -r LINE ; do
local ID="${LINE%% *}"
local NAME="${LINE#* }"
aws s3 cp "${SOURCE_FOLDER}/${PREFIX}_${NAME}" s3://${S3_BUCKET_NAME}/v2/${ID}/
aws s3 cp ${S3_BUCKET_ACL} "${SOURCE_FOLDER}/${PREFIX}_${NAME}" s3://${S3_BUCKET_NAME}/v2/${ID}/
done
}

Expand Down

0 comments on commit 816086a

Please sign in to comment.