summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-08-26 14:55:26 +0200
committerChristian Breunig <christian@breunig.cc>2023-08-26 14:55:26 +0200
commit45d68da433d8ece527b02dc19f3240619f8859c8 (patch)
tree745a52a56759ccce02c025b1107df76a47bc6beb /Jenkinsfile
parent28e63c2dcaf1b64aeb7928d29ca5b541413cf8f8 (diff)
downloadvyos-build-45d68da433d8ece527b02dc19f3240619f8859c8.tar.gz
vyos-build-45d68da433d8ece527b02dc19f3240619f8859c8.zip
Jenkins: aways store local ISO artifact
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 13c878e0..bbbc4bbe 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -59,7 +59,7 @@ pipeline {
parameters {
string(name: 'BUILD_BY', defaultValue: 'autobuild@vyos.net', description: 'Builder identifier (e.g. jrandomhacker@example.net)')
string(name: 'BUILD_VERSION', defaultValue: env.BASE_VERSION + 'ISO8601-TIMESTAMP', description: 'Version number (release builds only)')
- booleanParam(name: 'BUILD_PUBLISH', defaultValue: false, description: 'Publish this build to downloads.vyos.io and AWS S3')
+ booleanParam(name: 'BUILD_PUBLISH', defaultValue: false, description: 'Publish this build AWS S3')
booleanParam(name: 'BUILD_SNAPSHOT', defaultValue: false, description: 'Upload image to AWS S3 snapshot bucket')
booleanParam(name: 'TEST_SMOKETESTS', defaultValue: true, description: 'Run Smoketests after ISO build')
booleanParam(name: 'TEST_RAID1', defaultValue: true, description: 'Perform RAID1 installation tests')
@@ -153,8 +153,12 @@ pipeline {
if (isCustomBuild())
return
+ // always store local artifacts
+ archiveArtifacts artifacts: '**/build/vyos-*.iso, **/build/vyos-*.qcow2',
+ allowEmptyArchive: true
+
// only deploy ISO if requested via parameter
- if (! params.BUILD_PUBLISH)
+ if (!params.BUILD_PUBLISH)
return
files = findFiles(glob: 'build/vyos*.iso')