add Jenkinsfile

This commit is contained in:
Frédéric Péters 2019-10-14 19:27:47 +02:00
parent f803ce4d6b
commit 21a4bfbaff
1 changed files with 29 additions and 0 deletions

29
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,29 @@
@Library('eo-jenkins-lib@master') import eo.Utils
pipeline {
agent any
stages {
stage('Packaging') {
steps {
script {
if (env.JOB_NAME == 'combo-plugin-nanterre' && env.GIT_BRANCH == 'origin/master') {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder -d stretch combo-plugin-nanterre'
} else if (env.GIT_BRANCH.startsWith('hotfix/')) {
sh "sudo -H -u eobuilder /usr/local/bin/eobuilder -d stretch --branch ${env.GIT_BRANCH} --hotfix combo-plugin-nanterre"
}
}
}
}
}
post {
always {
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'ci+jenkins-combo-plugin-nanterre@entrouvert.org')
}
}
success {
cleanWs()
}
}
}