add basic Jenkinsfile

This commit is contained in:
Frédéric Péters 2019-08-22 21:27:46 +02:00
parent 9f2bff6712
commit c420f7a7dd
1 changed files with 27 additions and 0 deletions

27
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,27 @@
@Library('eo-jenkins-lib@master') import eo.Utils
pipeline {
agent any
stages {
stage('Packaging') {
steps {
script {
if (env.JOB_NAME == 'scrutiny' && env.GIT_BRANCH == 'origin/master') {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder -d stretch scrutiny'
}
}
}
}
}
post {
always {
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'admin+jenkins-scrutiny@entrouvert.com')
}
}
success {
cleanWs()
}
}
}