ci: add packaging step (#74029)

This commit is contained in:
Frédéric Péters 2023-01-31 18:55:25 +01:00 committed by Gitea
parent 6adda9aca2
commit df0d2cced8
1 changed files with 22 additions and 0 deletions

22
Jenkinsfile vendored
View File

@ -12,5 +12,27 @@ pipeline {
sh 'tox -rv'
}
}
stage('Packaging') {
steps {
script {
if (env.JOB_NAME == 'gitea-redmine' && env.GIT_BRANCH == 'origin/main') {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder -d bullseye gitea-redmine'
} else if (env.GIT_BRANCH.startsWith('hotfix/')) {
sh "sudo -H -u eobuilder /usr/local/bin/eobuilder -d bullseye --branch ${env.GIT_BRANCH} --hotfix gitea-redmine"
}
}
}
}
}
post {
always {
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'ci+jenkins-gitea-redmine@entrouvert.org')
}
}
success {
cleanWs()
}
}
}