2022-09-28 11:52:02 +02:00
|
|
|
pipeline {
|
|
|
|
agent { label 'equivs' }
|
2022-09-28 12:05:31 +02:00
|
|
|
|
|
|
|
stages {
|
2022-09-28 11:52:02 +02:00
|
|
|
stage('Build Debian (equivs) package(s)') {
|
|
|
|
steps {
|
|
|
|
script {
|
2022-09-28 12:13:55 +02:00
|
|
|
sh 'for i in *.ctl ; do equivs-build $i ; done'
|
2022-09-28 11:52:02 +02:00
|
|
|
}
|
|
|
|
archiveArtifacts allowEmptyArchive: true, artifacts: '*.deb,*.changes,*.buildinfo'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Upload Debian (equivs) packages') {
|
|
|
|
when {
|
|
|
|
branch 'debian'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
sh 'echo Dummy line to remove once something actually happens.'
|
|
|
|
/* No crendentials yet.
|
|
|
|
sh 'rsync -avP *.deb droneci@pub.evolix.net:/home/droneci/equivs/'
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-09-28 12:05:31 +02:00
|
|
|
|
2022-09-28 11:52:02 +02:00
|
|
|
post {
|
|
|
|
// Clean after build
|
|
|
|
always {
|
|
|
|
cleanWs()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|