misc: add hotfix support to Jenkinsfile

This commit is contained in:
Frédéric Péters 2019-10-25 09:18:05 +02:00
parent bf00e72309
commit 3d34d44246
1 changed files with 2 additions and 0 deletions

2
Jenkinsfile vendored
View File

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