Jenkinsfile: build new package on update to publik-base-theme
gitea/sictiam-publik-themes/pipeline/head This commit looks good
Details
gitea/sictiam-publik-themes/pipeline/head This commit looks good
Details
This commit is contained in:
parent
1fe4996014
commit
e91cacf74e
|
@ -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}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue