networking-midonet: Fix branch check for periodic jobs

ZUUL_BRANCH doesn't seem available for timer trigger. [1]

[1] http://docs.openstack.org/infra/zuul/launchers.html#change-related-parameters

Closes-Bug: #1656174
Change-Id: I029209919299dec196bff9fad1edc812ffa15ced
This commit is contained in:
YAMAMOTO Takashi 2017-01-13 13:09:02 +09:00
parent cfc3d0b2aa
commit f555ff8ede
1 changed files with 2 additions and 1 deletions

View File

@ -91,7 +91,8 @@
export PROJECTS="openstack/networking-midonet $PROJECTS"
export PROJECTS="openstack/tap-as-a-service $PROJECTS"
if [[ ! "stable/mitaka" =~ $ZUUL_BRANCH ]]; then
BRANCH=${{OVERRIDE_ZUUL_BRANCH:-$ZUUL_BRANCH}}
if [[ ! "stable/mitaka" =~ $BRANCH ]]; then
function gate_hook {{
bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh {midonet-plugin}
}}