From c78b06be53a269c00d9922561bf1abeb8129b7c5 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 26 Dec 2021 09:43:15 +0100 Subject: Jenkins: only deploy ISO if requested via parameter --- Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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') { -- cgit v1.2.3