diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-04-02 11:15:19 +0000 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-04-02 13:17:09 +0200 |
commit | c268b221d8eef99ab1bcfb85457045488ac2f834 (patch) | |
tree | 1a4a18d3c452938493fbb075f9b8465bf232fb75 /Jenkinsfile | |
parent | d4d774a8eb379cddb0f785845093a9e86654dffe (diff) | |
download | vyos-build-c268b221d8eef99ab1bcfb85457045488ac2f834.tar.gz vyos-build-c268b221d8eef99ab1bcfb85457045488ac2f834.zip |
Jenkins: make QEMU image build optional
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 { |