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
|
|
|
}
|
|
|
|
archiveArtifacts allowEmptyArchive: true, artifacts: '*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo,lintian.txt'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Upload Debian package') {
|
|
|
|
when {
|
|
|
|
branch 'debian'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
sh 'echo Dummy line to remove once something actually happens.'
|
2022-06-29 13:41:31 +02:00
|
|
|
/* No crendentials yet.
|
|
|
|
sh 'rsync -avP bkctld* droneci@pub.evolix.net:/home/droneci/bkctld/'
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|