Use deleteDir again, error out if missing packages.

This commit is contained in:
Andrew Bayer 2016-01-28 06:56:22 -08:00
parent d3a65df0ee
commit 2eab78e744
1 changed files with 8 additions and 1 deletions

9
Jenkinsfile vendored
View File

@ -108,7 +108,14 @@ timestampedNode('docker') {
suseFileName = suseFilesFound[0]?.name
}
}
step([$class: 'ArtifactArchiver', artifacts: 'target/**/*', fingerprint: true])
// Fail the build if we didn't find at least one of the packages, meaning they weren't built but
// somehow make didn't error out.
if (debFileName == null || rpmFileName == null || suseFileName == null) {
error "At least one of Debian, RPM or SuSE packages are missing, so failing the build."
}
}
}
@ -132,8 +139,8 @@ if (runTests) {
timestampedNode("docker") {
stage "Load Lib"
sh 'rm -rf workflowlib'
dir ('workflowlib') {
deleteDir()
git branch: packagingBranch, url: 'https://github.com/jenkinsci/packaging.git'
flow = load 'workflow/installertest.groovy'
}