diff options
| author | Christian Poessinger <christian@poessinger.com> | 2021-12-26 09:43:15 +0100 |
|---|---|---|
| committer | Christian Poessinger <christian@poessinger.com> | 2021-12-26 09:43:15 +0100 |
| commit | c78b06be53a269c00d9922561bf1abeb8129b7c5 (patch) | |
| tree | 7dc375dbed78dd3b1d9870ef24dab661a976b47a | |
| parent | 1960c1c259bc27c8f1f7806b40687b7e82866f01 (diff) | |
| download | vyos-build-c78b06be53a269c00d9922561bf1abeb8129b7c5.tar.gz vyos-build-c78b06be53a269c00d9922561bf1abeb8129b7c5.zip | |
Jenkins: only deploy ISO if requested via parameter
| -rw-r--r-- | Jenkinsfile | 6 |
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') { |
