summaryrefslogtreecommitdiff
path: root/Jenkinsfile
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:15 +0100
commitc78b06be53a269c00d9922561bf1abeb8129b7c5 (patch)
tree7dc375dbed78dd3b1d9870ef24dab661a976b47a /Jenkinsfile
parent1960c1c259bc27c8f1f7806b40687b7e82866f01 (diff)
downloadvyos-build-c78b06be53a269c00d9922561bf1abeb8129b7c5.tar.gz
vyos-build-c78b06be53a269c00d9922561bf1abeb8129b7c5.zip
Jenkins: only deploy ISO if requested via parameter
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 1ef8fca5..174448aa 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') {