publik-base-theme/Jenkinsfile

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

39 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-12-26 15:22:14 +01:00
@Library('eo-jenkins-lib@main') import eo.Utils
2019-07-02 18:52:35 +02:00
pipeline {
agent any
2022-01-03 21:43:03 +01:00
options { disableConcurrentBuilds() }
2019-07-02 18:52:35 +02:00
stages {
stage('Help Check') {
steps {
script {
sh '(cd help/fr/ && if [ $(yelp-build html *.page 2>&1 | wc -c) -ne 0 ]; then exit 1; fi)'
sh 'git clean -xdf'
}
}
}
2019-07-02 18:52:35 +02:00
stage('Packaging') {
steps {
script {
2020-12-26 15:22:14 +01:00
if (env.JOB_NAME == 'publik-base-theme' && env.GIT_BRANCH == 'origin/main') {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder -d buster,bullseye publik-base-theme'
2019-07-02 18:52:35 +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 publik-base-theme"
2019-07-02 18:52:35 +02:00
}
}
}
}
}
post {
always {
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'ci+jenkins-publik-base-theme@entrouvert.org')
2019-07-02 18:52:35 +02:00
}
}
success {
cleanWs()
}
}
}