add Jenkinsfile

This commit is contained in:
Benjamin Dauvergne 2018-10-14 20:40:55 +02:00
parent 5070a06a9a
commit 14febd3c5f
1 changed files with 33 additions and 0 deletions

33
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,33 @@
@Library('eo-jenkins-lib@master') import eo.Utils
pipeline {
agent any
stages {
stage('Unit Tests') {
steps {
sh './jenkins.sh'
}
}
stage('Packaging') {
when {
expression {
currentBuild.result == null || currentBuild.result == 'SUCCESS'
}
anyOf {
tag 'v*'
branch 'master'
}
}
steps {
script {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder lasso'
}
}
}
}
post {
success {
cleanWs()
}
}
}