lasso/Jenkinsfile

34 lines
748 B
Plaintext
Raw Normal View History

2020-12-26 15:22:15 +01:00
@Library('eo-jenkins-lib@main') import eo.Utils
2018-10-14 20:40:55 +02:00
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 'main'
2018-10-14 20:40:55 +02:00
}
}
steps {
script {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder -d buster,bullseye lasso'
2018-10-14 20:40:55 +02:00
}
}
}
}
post {
success {
cleanWs()
}
}
}