diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..4b42203c --- /dev/null +++ b/Jenkinsfile @@ -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() + } + } +}