summaryrefslogtreecommitdiff
path: root/vars/cloneAndBuild.groovy
diff options
context:
space:
mode:
Diffstat (limited to 'vars/cloneAndBuild.groovy')
-rw-r--r--vars/cloneAndBuild.groovy15
1 files changed, 14 insertions, 1 deletions
diff --git a/vars/cloneAndBuild.groovy b/vars/cloneAndBuild.groovy
index f945ba75..347a3b95 100644
--- a/vars/cloneAndBuild.groovy
+++ b/vars/cloneAndBuild.groovy
@@ -54,11 +54,24 @@ def call(description, architecture, pkgList, buildCmd) {
} else if (buildCmd) {
sh buildCmd
} else {
- sh 'dpkg-buildpackage -uc -us -tc -b'
+ try {
+ sh 'dpkg-buildpackage -uc -us -tc -F'
+ } catch (e) {
+ print "Source packages build failed, ignoring – building binaries only"
+ currentBuild.result = 'SUCCESS'
+ sh 'dpkg-buildpackage -uc -us -tc -b'
+ }
}
}
if (architecture == 'amd64') {
archiveArtifacts artifacts: "**/*.deb", fingerprint: true
+ try {
+ archiveArtifacts artifacts: "**/*.dsc", fingerprint: true
+ archiveArtifacts artifacts: "**/*.tar.*z", fingerprint: true
+ } catch (e) {
+ print "Archiving failed, ignoring - no source packages"
+ currentBuild.result = 'SUCCESS'
+ }
} else {
archiveArtifacts artifacts: "**/*_${architecture}.deb", fingerprint: true
}