jenkins: add support for hotfixes

This commit is contained in:
Frédéric Péters 2019-08-31 10:35:04 +02:00
parent c5a802e15d
commit bbc3164c59
1 changed files with 2 additions and 0 deletions

2
Jenkinsfile vendored
View File

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