提交 2eab78e7 编写于 作者: A Andrew Bayer

Use deleteDir again, error out if missing packages.

上级 d3a65df0
......@@ -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'
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册