2021-02-26 12:33:47 +01:00
|
|
|
@Library('eo-jenkins-lib@main') import eo.Utils
|
|
|
|
|
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage('Packaging') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
if (env.JOB_NAME == 'publik-imio-industrialisation' && env.GIT_BRANCH == 'origin/main') {
|
2022-01-28 08:26:36 +01:00
|
|
|
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder -d buster,bullseye publik-imio-industrialisation'
|
2021-02-26 12:33:47 +01:00
|
|
|
} else if (env.GIT_BRANCH.startsWith('hotfix/')) {
|
2022-01-28 08:26:36 +01:00
|
|
|
sh "sudo -H -u eobuilder /usr/local/bin/eobuilder -d buster,bullseye --branch ${env.GIT_BRANCH} --hotfix publik-imio-industrialisation"
|
2021-02-26 12:33:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
script {
|
|
|
|
utils = new Utils()
|
|
|
|
utils.mail_notify(currentBuild, env, 'ci+jenkins-publik-imio-industrialisation@entrouvert.org')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
success {
|
|
|
|
cleanWs()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|