build: add support for hotfix branches
This commit is contained in:
parent
bd1a4fdb0e
commit
215649cc9f
|
@ -25,6 +25,8 @@ pipeline {
|
||||||
script {
|
script {
|
||||||
if (env.JOB_NAME == 'welco' && env.GIT_BRANCH == 'origin/master') {
|
if (env.JOB_NAME == 'welco' && env.GIT_BRANCH == 'origin/master') {
|
||||||
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder welco'
|
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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue