Jenkins: disable cache control from s3 upload

This commit is contained in:
Christian Poessinger 2022-09-04 08:41:31 +02:00 committed by GitHub
parent 07e2f85156
commit b3209fa92d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
Jenkinsfile vendored
View File

@ -166,11 +166,9 @@ pipeline {
// Publish build result to AWS S3 rolling bucket
withAWS(region: 'us-east-1', credentials: 's3-vyos-downloads-rolling-rw') {
s3Upload(bucket: 's3-us.vyos.io', path: 'rolling/' + getGitBranchName() + '/',
workingDir: 'build', includePathPattern: 'vyos*.iso',
cacheControl: "public, max-age=2592000")
workingDir: 'build', includePathPattern: 'vyos*.iso')
s3Copy(fromBucket: 's3-us.vyos.io', fromPath: 'rolling/' + getGitBranchName() + '/' + files[0].name,
toBucket: 's3-us.vyos.io', toPath: 'rolling/' + getGitBranchName() + '/vyos-rolling-latest.iso',
cacheControl: "public, max-age=2592000")
toBucket: 's3-us.vyos.io', toPath: 'rolling/' + getGitBranchName() + '/vyos-rolling-latest.iso')
}
}