combo-plugin-imio-townstreet/Jenkinsfile

43 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2021-02-19 14:58:05 +01:00
@Library('eo-jenkins-lib@main') import eo.Utils
pipeline {
agent any
options {
disableConcurrentBuilds()
}
stages {
stage('Unit Tests') {
steps {
sh 'tox -rv'
}
post {
always {
mergeJunitResults()
}
}
}
stage('Packaging') {
steps {
script {
if (env.JOB_NAME == 'combo-plugin-imio-townstreet' && env.GIT_BRANCH == 'origin/main') {
2022-08-02 09:47:49 +02:00
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder -d buster,bullseye combo-plugin-imio-townstreet'
2021-02-19 14:58:05 +01:00
} else if (env.GIT_BRANCH.startsWith('hotfix/')) {
2022-08-02 09:47:49 +02:00
sh "sudo -H -u eobuilder /usr/local/bin/eobuilder -d buster,bullseye --branch ${env.GIT_BRANCH} --hotfix combo-plugin-imio-townstreet"
2021-02-19 14:58:05 +01:00
}
}
}
}
}
post {
always {
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'ci+jenkins-combo-plugin-imio-townstreet@entrouvert.org')
}
}
success {
cleanWs()
}
}
}