combo-plugin-gnm/Jenkinsfile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2020-12-26 15:21:15 +01:00
@Library('eo-jenkins-lib@main') import eo.Utils
2019-09-23 15:13:31 +02:00
pipeline {
agent any
2020-11-30 20:08:24 +01:00
options {
disableConcurrentBuilds()
}
2019-09-23 15:13:31 +02:00
stages {
2020-11-30 20:08:24 +01:00
stage('Unit Tests') {
steps {
sh 'tox -rv'
}
post {
always {
mergeJunitResults()
}
}
}
2019-09-23 15:13:31 +02:00
stage('Packaging') {
steps {
script {
2020-12-26 15:21:15 +01:00
if (env.JOB_NAME == 'combo-plugin-gnm' && env.GIT_BRANCH == 'origin/main') {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder -d buster,bullseye combo-plugin-gnm'
2019-09-23 15:13:31 +02:00
} else if (env.GIT_BRANCH.startsWith('hotfix/')) {
sh "sudo -H -u eobuilder /usr/local/bin/eobuilder -d buster,bullseye --branch ${env.GIT_BRANCH} --hotfix combo-plugin-gnm"
2019-09-23 15:13:31 +02:00
}
}
}
}
}
post {
always {
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'ci+jenkins-combo-plugin-gnm@entrouvert.org')
2019-09-23 15:13:31 +02:00
}
}
success {
cleanWs()
}
}
}