diff options
Diffstat (limited to 'vars/cloneAndBuild.groovy')
-rw-r--r-- | vars/cloneAndBuild.groovy | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vars/cloneAndBuild.groovy b/vars/cloneAndBuild.groovy index b2045a0b..48d73a66 100644 --- a/vars/cloneAndBuild.groovy +++ b/vars/cloneAndBuild.groovy @@ -56,6 +56,13 @@ def call(description, architecture, pkgList, buildCmd) { } else if (buildCmd) { sh buildCmd } else { + // build dependency package and install it + sh """ + if [ -f debian/control ]; then + sudo mk-build-deps --install debian/control + sudo dpkg -i *build-deps*.deb + fi + """ try { sh 'dpkg-buildpackage -uc -us -tc -F' } catch (e) { |