diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-22 18:08:20 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-22 18:10:33 +0200 |
commit | 0c9de66752fb8e38d83f5aa04ef848c4b577509f (patch) | |
tree | d96a88b7849fb18001dd9fdb17eb1eebc310fd59 | |
parent | 75b37b28b2e9abf1fc5b97f46dd60130dd63ed91 (diff) | |
download | vyos-build-0c9de66752fb8e38d83f5aa04ef848c4b577509f.tar.gz vyos-build-0c9de66752fb8e38d83f5aa04ef848c4b577509f.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.
(cherry picked from commit 768b900f9296ce8e26b6f330581160c8a533b41f)
-rw-r--r-- | Jenkinsfile | 2 |
1 files changed, 1 insertions, 1 deletions
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 |