From 0c9de66752fb8e38d83f5aa04ef848c4b577509f 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. (cherry picked from commit 768b900f9296ce8e26b6f330581160c8a533b41f) --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f05d980b..bd042eac 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -153,7 +153,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