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*'
|
2021-04-07 18:06:11 +02:00
|
|
|
branch 'main'
|
2018-10-14 20:40:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
script {
|
2022-02-28 15:37:52 +01:00
|
|
|
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder -d buster,bullseye lasso'
|
2018-10-14 20:40:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
success {
|
|
|
|
cleanWs()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|