Debug CI
gitea/bidon/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Agate 2023-02-16 11:42:58 +01:00
parent 2fb52efda8
commit 80d7fb2fbb
1 changed files with 3 additions and 4 deletions

7
Jenkinsfile vendored
View File

@ -19,11 +19,10 @@ pipeline {
echo "${JOB_NAME}" | sed "s/gitea\\///" | awk -F/ '{print $1}'
'''
).trim()
sh 'printenv'
if (env.BRANCH_NAME == 'main') {
if (env.GIT_BRANCH == 'main' || env.GIT_BRANCH == 'origin/main') {
sh "sudo -H -u eobuilder /usr/local/bin/eobuilder -d bullseye ${SHORT_JOB_NAME}"
} else if (env.BRANCH_NAME.startsWith('hotfix/')) {
sh "sudo -H -u eobuilder /usr/local/bin/eobuilder -d bullseye --branch ${env.BRANCH_NAME} --hotfix ${SHORT_JOB_NAME}"
} else if (env.GIT_BRANCH.startsWith('hotfix/')) {
sh "sudo -H -u eobuilder /usr/local/bin/eobuilder -d bullseye --branch ${env.GIT_BRANCH} --hotfix ${SHORT_JOB_NAME}"
}
}
}