summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-22 18:08:20 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-22 18:08:20 +0200
commit768b900f9296ce8e26b6f330581160c8a533b41f (patch)
treebed14206410c7f859fa86db7ec0f24b42843ff2d /Jenkinsfile
parentc66d7648c8602da73bd5acd1d88ea022d3c26cfd (diff)
downloadvyos-build-768b900f9296ce8e26b6f330581160c8a533b41f.tar.gz
vyos-build-768b900f9296ce8e26b6f330581160c8a533b41f.zip
Jenkins: place snapshot images in a version subdirectory
when BUILD_SNAPSHOT is set, place image in a subdirectory that is named after the specified BUILD_VERSION parameter. Example: vyos-1.3.0-rc6-amd64.iso will be uploaded to snapshot/1.3.0-rc6.
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 8a125cca..e2d1836e 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -143,7 +143,7 @@ pipeline {
// Publish ISO image to snapshot bucket
if (files && params.BUILD_SNAPSHOT) {
withAWS(region: 'us-east-1', credentials: 's3-vyos-downloads-rolling-rw') {
- s3Upload(bucket: 's3-us.vyos.io', path: 'snapshot/', workingDir: 'build', includePathPattern: 'vyos*.iso')
+ s3Upload(bucket: 's3-us.vyos.io', path: 'snapshot/' + params.BUILD_VERSION + '/', workingDir: 'build', includePathPattern: 'vyos*.iso')
}
} else {
// Publish build result to rolling bucket and downloads.vyos.io