publik-common/Jenkinsfile

33 lines
808 B
Groovy

@Library('eo-jenkins-lib@main') import eo.Utils
pipeline {
agent any
stages {
stage('Unit Tests') {
steps {
sh 'echo "no test implemented"'
}
}
stage('Packaging') {
steps {
script {
if (env.JOB_NAME == 'publik-common' && env.GIT_BRANCH == 'origin/main') {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder -d buster,bullseye publik-common'
}
}
}
}
}
post {
always {
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'admin+adminsys@entrouvert.com')
}
}
success {
cleanWs()
}
}
}