diff --git a/jenkins/jobs/networking-midonet.yaml b/jenkins/jobs/networking-midonet.yaml index 83df670d51..9b057bd8ef 100644 --- a/jenkins/jobs/networking-midonet.yaml +++ b/jenkins/jobs/networking-midonet.yaml @@ -27,7 +27,7 @@ # reference magic for testing changes. export PROJECTS="openstack/networking-midonet $PROJECTS" - if [ -f $BASE/new/networking-midonet/devstack/ci/gate_hook.sh ]; then + if [[ ! "stable/liberty stable/mitaka" =~ $ZUUL_BRANCH ]]; then function gate_hook {{ bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh v1 }} @@ -91,7 +91,7 @@ export PROJECTS="openstack/networking-midonet $PROJECTS" export PROJECTS="openstack/tap-as-a-service $PROJECTS" - if [ -f $BASE/new/networking-midonet/devstack/ci/gate_hook.sh ]; then + if [[ ! "stable/liberty stable/mitaka" =~ $ZUUL_BRANCH ]]; then function gate_hook {{ bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh v2 }} @@ -149,7 +149,7 @@ export PROJECTS="openstack/networking-midonet $PROJECTS" export PROJECTS="openstack/tap-as-a-service $PROJECTS" - if [ -f $BASE/new/networking-midonet/devstack/ci/gate_hook.sh ]; then + if [[ ! "stable/liberty stable/mitaka" =~ $ZUUL_BRANCH ]]; then function gate_hook {{ bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh ml2 }} @@ -206,7 +206,7 @@ export PROJECTS="openstack/networking-midonet $PROJECTS" export PROJECTS="openstack/rally $PROJECTS" - if [ -f $BASE/new/networking-midonet/devstack/ci/gate_hook.sh ]; then + if [[ ! "stable/liberty stable/mitaka" =~ $ZUUL_BRANCH ]]; then function gate_hook {{ bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh rally }}