equivs/.Jenkinsfile

33 lines
758 B
Plaintext
Raw Normal View History

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 {
2022-12-12 16:49:55 +01:00
branch 'main'
2022-09-28 11:52:02 +02:00
}
steps {
script {
2022-12-22 11:40:30 +01:00
sh 'rsync -avP *.deb *.buildinfo *.changes pub.evolix.org:/srv/upload/'
2022-09-28 11:52:02 +02:00
}
}
}
}
2022-09-28 12:05:31 +02:00
2022-09-28 11:52:02 +02:00
post {
// Clean after build
always {
cleanWs()
}
}
}