summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-26 09:43:15 +0100
committerChristian Poessinger <christian@poessinger.com>2021-12-26 09:43:23 +0100
commit17799b2c84e53b167189be6d1797a245dcd1898c (patch)
tree411b8a87987ffa3d90147dde7528d87de71ae327
parenta5e591fa9b66b229f7296de177a570c7b7126be4 (diff)
downloadvyos-build-17799b2c84e53b167189be6d1797a245dcd1898c.tar.gz
vyos-build-17799b2c84e53b167189be6d1797a245dcd1898c.zip
Jenkins: only deploy ISO if requested via parameter
(cherry picked from commit c78b06be53a269c00d9922561bf1abeb8129b7c5)
-rw-r--r--Jenkinsfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index e5ace26a..3abb62ac 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -149,9 +149,13 @@ pipeline {
if (isCustomBuild())
return
+ // only deploy ISO if requested via parameter
+ if (! params.BUILD_PUBLISH)
+ return
+
files = findFiles(glob: 'build/vyos*.iso')
// Publish ISO image to daily builds bucket
- if (files && params.BUILD_PUBLISH) {
+ if (files) {
// Publish ISO image to snapshot bucket
if (files && params.BUILD_SNAPSHOT) {
withAWS(region: 'us-east-1', credentials: 's3-vyos-downloads-rolling-rw') {