From f1e5b791db2f3141fd30720e88c0fa22221637d5 Mon Sep 17 00:00:00 2001 From: Thomas Morin Date: Wed, 26 Apr 2017 17:19:24 +0200 Subject: [PATCH] n8g-bagpipe: use pre/post gate hooks to fullstack job Add pre/post gate hoos to the fullstack job. The hooks are added in master branch in change Ic2bd4e1ab47bbd4c5e086ae6f5529e4ae50e74d8 which this change depends on, and don't need to be added in stable branches for which this experimental job won't be enabled. Depends-On: Ic2bd4e1ab47bbd4c5e086ae6f5529e4ae50e74d8 Change-Id: I21f0ca6c92252961db5d4c44e95cd2c737164ed5 --- jenkins/jobs/networking-bagpipe.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/jenkins/jobs/networking-bagpipe.yaml b/jenkins/jobs/networking-bagpipe.yaml index bfa1a2c446..3831177dc7 100644 --- a/jenkins/jobs/networking-bagpipe.yaml +++ b/jenkins/jobs/networking-bagpipe.yaml @@ -77,11 +77,21 @@ export PROJECTS="openstack/networking-bagpipe $PROJECTS" export DEVSTACK_LOCAL_CONFIG="enable_plugin networking-bagpipe git://git.openstack.org/openstack/networking-bagpipe" + function pre_test_hook {{ + . $BASE/new/networking-bagpipe/devstack/pre_test_hook.sh fullstack + }} + export -f pre_test_hook + function gate_hook {{ bash -xe $BASE/new/networking-bagpipe/devstack/gate_hook.sh fullstack }} export -f gate_hook + function post_test_hook {{ + . $BASE/new/networking-bagpipe/devstack/post_test_hook.sh fullstack + }} + export -f post_test_hook + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-bagpipe/devstack/devstack-gate-rc cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh