diff options
author | Andrii <85483797+andriiandrieiev@users.noreply.github.com> | 2022-05-05 19:16:03 +0300 |
---|---|---|
committer | Andrii <85483797+andriiandrieiev@users.noreply.github.com> | 2022-05-05 19:16:03 +0300 |
commit | d8824db3f39a55eac85ea4a5c32dd95488f770fd (patch) | |
tree | 048c679bbb90d28528296da84a099a7d5cf6490e /vars/cloneAndBuild.groovy | |
parent | c522ff506d85444afe09d57fcd0a01ffe4e3504f (diff) | |
download | vyos-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.groovy | 15 |
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 } |