scrutiny/Jenkinsfile

41 lines
1014 B
Groovy

@Library('eo-jenkins-lib@main') import eo.Utils
pipeline {
agent any
stages {
stage('Unit Tests') {
steps {
sh 'tox -rv'
}
post {
always {
script {
utils = new Utils()
utils.publish_pylint('pylint.out')
}
}
}
}
stage('Packaging') {
steps {
script {
if (env.JOB_NAME == 'scrutiny' && env.GIT_BRANCH == 'origin/main') {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder -d buster,bullseye scrutiny'
}
}
}
}
}
post {
always {
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'ci+jenkins-scrutiny@entrouvert.org')
}
}
success {
cleanWs()
}
}
}