2018-09-27 11:41:43 +02:00
|
|
|
@Library('eo-jenkins-lib@master') import eo.Utils
|
|
|
|
|
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage('Unit Tests') {
|
|
|
|
steps {
|
|
|
|
sh 'echo "no test implemented"'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Packaging') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
if (env.JOB_NAME == 'entrouvert-archive' && env.GIT_BRANCH == 'origin/master') {
|
|
|
|
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder entrouvert-archive'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
script {
|
|
|
|
utils = new Utils()
|
2019-10-02 13:52:45 +02:00
|
|
|
utils.mail_notify(currentBuild, env, 'ci+adminsys@entrouvert.org')
|
2018-09-27 11:41:43 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
success {
|
|
|
|
cleanWs()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|