From 768b900f9296ce8e26b6f330581160c8a533b41f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 22 Aug 2021 18:08:20 +0200 Subject: 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. --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Jenkinsfile') 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 -- cgit v1.2.3