diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-06-26 17:07:48 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-06-26 17:44:01 +0200 |
commit | 8cf9ac3269ca906a921ba613ee5de2b36c516ba1 (patch) | |
tree | 1fdacf4bd1a5087af76aaa1accd741db14ed567a /Jenkinsfile | |
parent | 1713a3268f2cba7210790e958b284677fb106601 (diff) | |
download | vyos-build-8cf9ac3269ca906a921ba613ee5de2b36c516ba1.tar.gz vyos-build-8cf9ac3269ca906a921ba613ee5de2b36c516ba1.zip |
Jenkins: ISO test is conditional on file existence
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index c85f95ff..c2ec90a5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -151,22 +151,16 @@ pipeline { --version 1.3-rolling-\$(date +%Y%m%d%H%M) sudo make iso """ + + if (fileExists('build/live-image-amd64.hybrid.iso') == false) { + error('ISO build error') + } } } } stage('Test ISO') { when { - beforeOptions true - beforeAgent true - anyOf { - // Do not run ISO build when the Docker container definition or the build pipeline - // library changes as this has no direct impact on the ISO image. - not { changeset "**/docker/*" } - not { changeset "**/vars/*" } - not { changeset "**/packages/*" } - triggeredBy 'TimerTrigger' - triggeredBy cause: "UserIdCause" - } + expression { fileExists 'build/live-image-amd64.hybrid.iso' } } steps { sh "sudo make test" |