add Jenkinsfile
This commit is contained in:
parent
5070a06a9a
commit
14febd3c5f
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue