authentic2-auth-fedict/Jenkinsfile

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

30 lines
909 B
Plaintext
Raw Permalink Normal View History

2020-12-26 15:22:14 +01:00
@Library('eo-jenkins-lib@main') import eo.Utils
2019-09-23 15:14:25 +02:00
pipeline {
agent any
stages {
stage('Packaging') {
steps {
script {
2020-12-26 15:22:14 +01:00
if (env.JOB_NAME == 'authentic2-auth-fedict' && env.GIT_BRANCH == 'origin/main') {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder authentic2-auth-fedict'
2019-09-23 15:14:25 +02:00
} else if (env.GIT_BRANCH.startsWith('hotfix/')) {
sh "sudo -H -u eobuilder /usr/local/bin/eobuilder --branch ${env.GIT_BRANCH} --hotfix authentic2-auth-fedict"
2019-09-23 15:14:25 +02:00
}
}
}
}
}
post {
always {
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'ci+jenkins-authentic2-auth-fedict@entrouvert.org')
2019-09-23 15:14:25 +02:00
}
}
success {
cleanWs()
}
}
}