add a Jenkinfile

This commit is contained in:
Emmanuel Cazenave 2020-06-09 17:16:30 +02:00
parent b3b62db9d1
commit 8ec0b48e63
1 changed files with 21 additions and 0 deletions

21
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,21 @@
@Library('eo-jenkins-lib@master') import eo.Utils
pipeline {
agent any
stages {
stage('Packaging') {
steps {
script {
if (env.JOB_NAME == 'httpie-publik-auth' && env.GIT_BRANCH == 'origin/master') {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder httpie-publik-auth'
}
}
}
}
}
post {
success {
cleanWs()
}
}
}