diff options
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 68f64daa..0ec68d4c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -107,6 +107,7 @@ pipeline { booleanParam(name: 'BUILD_PUBLISH', defaultValue: true, description: 'Publish this build to downloads.vyos.io and AWS S3') booleanParam(name: 'BUILD_SMOKETESTS', defaultValue: true, description: 'Include Smoketests in ISO image') booleanParam(name: 'BUILD_SNAPSHOT', defaultValue: false, description: 'Upload image to AWS S3 snapshot bucket') + booleanParam(name: 'BUILD_QEMU', defaultValue: false, description: 'Generate QEMU image') } triggers { cron('H 2 * * *') @@ -159,7 +160,7 @@ pipeline { } } } - stage('QEMU') { + stage('Test') { when { expression { return params.BUILD_SMOKETESTS } } @@ -180,14 +181,15 @@ pipeline { sh "sudo make testc" } } - stage('Build QEMU image') { - when { - expression { fileExists 'build/live-image-amd64.hybrid.iso' } - } - steps { - sh "sudo make qemu" - } - } + } + } + stage('Build QEMU image') { + when { + expression { fileExists 'build/live-image-amd64.hybrid.iso' } + expression { return params.BUILD_QEMU } + } + steps { + sh "sudo make qemu" } } } @@ -241,7 +243,7 @@ pipeline { } } failure { - archiveArtifacts artifacts: '**/live-image-amd64.hybrid.iso', + archiveArtifacts artifacts: '**/live-image-amd64.hybrid.iso, packer_build/qemu/*.img', allowEmptyArchive: true } cleanup { |