Use sbuild during CI
All checks were successful
continuous-integration/drone/push Build is passing
gitea/evobackup/pipeline/head This commit looks good

This commit is contained in:
David Prevot 2022-12-09 12:00:02 +01:00
parent 1e35aaa4db
commit 4476802182

View file

@ -1,22 +1,13 @@
pipeline { pipeline {
agent { label 'docker' } agent { label 'sbuild' }
stages { stages {
stage('Build Debian package') { stage('Build Debian package') {
agent {
docker {
image 'evolix/gbp:bullseye'
args '-u root --privileged'
}
}
when { when {
branch 'debian' branch 'debian'
} }
steps { steps {
script { script {
sh 'mk-build-deps --install --remove debian/control' sh 'gbp buildpackage'
sh 'rm -rf {source,*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo,lintian.txt,.git}'
sh "gbp clone --debian-branch=$GIT_BRANCH $GIT_URL source"
sh 'cd source && git checkout $GIT_BRANCH && gbp buildpackage -us -uc'
} }
archiveArtifacts allowEmptyArchive: true, artifacts: '*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo,lintian.txt' archiveArtifacts allowEmptyArchive: true, artifacts: '*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo,lintian.txt'
} }