gadjo/Jenkinsfile

44 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-12-26 15:22:15 +01:00
@Library('eo-jenkins-lib@main') import eo.Utils
2019-07-12 13:41:00 +02:00
pipeline {
agent any
2021-09-05 11:09:50 +02:00
options { disableConcurrentBuilds() }
2019-07-12 13:41:00 +02:00
stages {
2022-06-17 20:04:12 +02:00
stage('Unit Tests') {
steps {
sh 'tox -rv'
}
post {
always {
script {
utils = new Utils()
utils.publish_pylint('pylint.out')
}
}
}
}
2019-07-12 13:41:00 +02:00
stage('Packaging') {
steps {
script {
2020-12-26 15:22:15 +01:00
if (env.JOB_NAME == 'gadjo' && env.GIT_BRANCH == 'origin/main') {
2021-09-05 11:04:03 +02:00
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder -d buster,bullseye gadjo'
2019-07-12 13:41:00 +02:00
} else if (env.GIT_BRANCH.startsWith('hotfix/')) {
2021-09-05 11:04:03 +02:00
sh "sudo -H -u eobuilder /usr/local/bin/eobuilder -d buster,bullseye --branch ${env.GIT_BRANCH} --hotfix gadjo"
2019-07-12 13:41:00 +02:00
}
}
}
}
}
post {
always {
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'ci+jenkins-gadjo@entrouvert.org')
2019-07-12 13:41:00 +02:00
}
}
success {
cleanWs()
}
}
}