Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new cdn bucket endpoint #7024

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ jobWrapper {

stage('Publish to S3') {
rlmNode('docker') {
// Publish to current S3 bucket
deleteDir()
dir('temp') {
withAWS(credentials: 'tightdb-s3-ci', region: 'us-east-1') {
Expand All @@ -164,6 +165,22 @@ jobWrapper {
}
}
}
// Also publish to new S3 bucket.
deleteDir()
dir('temp') {
withAWS(useNode: true, region: 'us-east-1') { // the `docker` nodes have an instance profile attached with the right permissions
for (publishingStash in publishingStashes) {
dir(publishingStash) {
unstash name: publishingStash
def path = publishingStash.replaceAll('___', '/')
def files = findFiles(glob: '**')
for (file in files) {
s3Upload file: file.path, path: "downloads/core/${gitDescribeVersion}/${path}/${file.name}", bucket: 'staging.static.realm.io'
}
}
}
}
}
}
}
}
Expand Down