2022-06-28 15:35:16 +02:00
|
|
|
pipeline {
|
2022-12-09 12:00:02 +01:00
|
|
|
agent { label 'sbuild' }
|
2022-06-28 15:35:16 +02:00
|
|
|
stages {
|
|
|
|
stage('Build Debian package') {
|
|
|
|
when {
|
|
|
|
branch 'debian'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
script {
|
2022-12-09 12:00:02 +01:00
|
|
|
sh 'gbp buildpackage'
|
2022-06-28 15:35:16 +02:00
|
|
|
}
|
2022-12-12 10:26:00 +01:00
|
|
|
archiveArtifacts allowEmptyArchive: true, artifacts: 'build-area/*.gz,build-area/*.bz2,build-area/*.xz,build-area/*.deb,build-area/*.dsc,build-area/*.changes,build-area/*.buildinfo,build-area/*.build,build-area/lintian.txt'
|
2022-06-28 15:35:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Upload Debian package') {
|
|
|
|
when {
|
|
|
|
branch 'debian'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
script {
|
2022-12-22 11:39:42 +01:00
|
|
|
sh 'rsync -avP build-area/bkctld*.deb build-area/bkctld*.changes build-area/bkctld*.buildinfo pub.evolix.org:/srv/upload/'
|
2022-06-28 15:35:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
// Clean after build
|
|
|
|
always {
|
2022-06-28 16:03:11 +02:00
|
|
|
cleanWs()
|
2022-06-28 15:35:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|