Jenkinsfile: build new package on update to publik-base-theme
gitea/sictiam-publik-themes/pipeline/head This commit looks good Details

This commit is contained in:
Benjamin Dauvergne 2023-09-13 19:22:09 +02:00
parent 1fe4996014
commit e91cacf74e
1 changed files with 5 additions and 1 deletions

6
Jenkinsfile vendored
View File

@ -2,10 +2,14 @@
pipeline {
agent any
triggers {
upstream 'gitea/publik-base-theme/main'
}
stages {
stage('Packaging') {
steps {
script {
sh 'git submodule update --init --recursive'
env.SHORT_JOB_NAME=sh(
returnStdout: true,
// given JOB_NAME=gitea/project/PR-46, returns project
@ -15,7 +19,7 @@ pipeline {
'''
).trim()
if (env.GIT_BRANCH == 'main' || env.GIT_BRANCH == 'origin/main') {
sh "sudo -H -u eobuilder /usr/local/bin/eobuilder -d bullseye,bookworm ${SHORT_JOB_NAME}"
sh "sudo -H -u eobuilder /usr/local/bin/eobuilder -d bullseye,bookworm -f ${SHORT_JOB_NAME}"
} else if (env.GIT_BRANCH.startsWith('hotfix/')) {
sh "sudo -H -u eobuilder /usr/local/bin/eobuilder -d bullseye,bookworm --branch ${env.GIT_BRANCH} --hotfix ${SHORT_JOB_NAME}"
}