This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
rouen-publik-theme/Jenkinsfile

28 lines
692 B
Groovy

@Library('eo-jenkins-lib@main') import eo.Utils
pipeline {
agent any
stages {
stage('Packaging') {
steps {
script {
if (env.JOB_NAME == 'rouen-publik-theme' && env.GIT_BRANCH == 'origin/main') {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder rouen-publik-theme'
}
}
}
}
}
post {
always {
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'ci+jenkins-rouen-publik-theme@entrouvert.org')
}
}
success {
cleanWs()
}
}
}