summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2022-08-12 14:38:49 +0100
committerDaniil Baturin <daniil@baturin.org>2022-08-12 14:38:49 +0100
commit22ffa0c6cba381055bb79a4456af56ed8060cfeb (patch)
treea34f304162af6aa0e415ae177c7ca1666181bf36 /Jenkinsfile
parenta39c7d5f6e22645baf2b567532ad1b4b3c9fa511 (diff)
downloadvyos-build-22ffa0c6cba381055bb79a4456af56ed8060cfeb.tar.gz
vyos-build-22ffa0c6cba381055bb79a4456af56ed8060cfeb.zip
Increase S3 file cache age to one month
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 40d788f0..80846ba5 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -160,17 +160,17 @@ pipeline {
if (files && params.BUILD_SNAPSHOT) {
withAWS(region: 'us-east-1', credentials: 's3-vyos-downloads-rolling-rw') {
s3Upload(bucket: 's3-us.vyos.io', path: 'snapshot/' + params.BUILD_VERSION + '/', workingDir: 'build', includePathPattern: 'vyos*.iso',
- cacheControl: "public, max-age=14400")
+ cacheControl: "public, max-age=2592000")
}
} else {
// 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=14400")
+ cacheControl: "public, max-age=2592000")
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=14400")
+ cacheControl: "public, max-age=2592000")
}
}