@Library('eo-jenkins-lib@master') import eo.Utils pipeline { agent any stages { stage('Unit Tests') { steps { sh 'env' sh 'tox -rv' } post { always { script { utils = new Utils() utils.publish_coverage('coverage.xml') utils.publish_coverage_native('index.html') utils.publish_pylint('pylint.out') } junit '*_results.xml' } } } stage('Packaging') { steps { script { if (env.JOB_NAME == 'authentic2-wallonie-connect/master') { sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder -d stretch authentic2-wallonie-connect' } } } } } post { always { script { utils = new Utils() utils.mail_notify(currentBuild, env, 'admin+jenkins-authentic2-wallonie-connect@entrouvert.com') } } success { cleanWs() } } }