summaryrefslogtreecommitdiff
path: root/vars/cloneAndBuild.groovy
diff options
context:
space:
mode:
authorAndrii <85483797+andriiandrieiev@users.noreply.github.com>2022-05-05 19:16:03 +0300
committerAndrii <85483797+andriiandrieiev@users.noreply.github.com>2022-05-05 19:16:03 +0300
commitd8824db3f39a55eac85ea4a5c32dd95488f770fd (patch)
tree048c679bbb90d28528296da84a099a7d5cf6490e /vars/cloneAndBuild.groovy
parentc522ff506d85444afe09d57fcd0a01ffe4e3504f (diff)
downloadvyos-build-d8824db3f39a55eac85ea4a5c32dd95488f770fd.tar.gz
vyos-build-d8824db3f39a55eac85ea4a5c32dd95488f770fd.zip
Jenkins: builld dsc packages beside amd64 binaries
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 adb62525..b2045a0b 100644
--- a/vars/cloneAndBuild.groovy
+++ b/vars/cloneAndBuild.groovy
@@ -56,11 +56,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
}