Use sbuild during CI
This commit is contained in:
parent
1e35aaa4db
commit
4476802182
13
.Jenkinsfile
13
.Jenkinsfile
|
@ -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'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue