build: add support for hotfix branches

This commit is contained in:
Frédéric Péters 2019-07-16 16:03:59 +02:00
parent bd1a4fdb0e
commit 215649cc9f
1 changed files with 2 additions and 0 deletions

2
Jenkinsfile vendored
View File

@ -25,6 +25,8 @@ pipeline {
script {
if (env.JOB_NAME == 'welco' && env.GIT_BRANCH == 'origin/master') {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder welco'
} else if (env.GIT_BRANCH.startsWith('hotfix/')) {
sh "sudo -H -u eobuilder /usr/local/bin/eobuilder -d stretch --branch ${env.GIT_BRANCH} --hotfix welco"
}
}
}