add jenkinsfile

This commit is contained in:
Christophe Siraut 2020-10-27 10:17:58 +01:00
parent 7b97401dc6
commit 7fa6eed607
1 changed files with 32 additions and 0 deletions

32
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,32 @@
@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 == 'publik-infra' && env.GIT_BRANCH == 'origin/master') {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder publik-infra'
}
}
}
}
}
post {
always {
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'admin+adminsys@entrouvert.com')
}
}
success {
cleanWs()
}
}
}