diff options
Diffstat (limited to 'vars')
-rw-r--r-- | vars/buildPackage.groovy | 2 | ||||
-rw-r--r-- | vars/cloneAndBuild.groovy | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/vars/buildPackage.groovy b/vars/buildPackage.groovy index 42c449b..fa2403e 100644 --- a/vars/buildPackage.groovy +++ b/vars/buildPackage.groovy @@ -100,8 +100,6 @@ def call(description=null, pkgList=null, buildCmd=null, buildArm=false, changesP deleteDir() } } - - } stage('arm64') { agent { diff --git a/vars/cloneAndBuild.groovy b/vars/cloneAndBuild.groovy index b2045a0..48d73a6 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) { |