project-config/jenkins/jobs/devstack-plugin-container.yaml
Hongbin Lu c2da4caf96 Add a dsvm job for devstack-plugin-container
Change-Id: I31106c71c6ee4bdbb80d16803b322b1c60357187
2017-04-21 19:39:20 -04:00

51 lines
1.5 KiB
YAML

- job-template:
name: '{pipeline}-devstack-plugin-container-dsvm{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- print-template-name:
template-name: "{template-name}"
- link-logs
- net-info
- devstack-checkout
- local_conf:
conf: |
[[local|localrc]]
enable_plugin devstack-plugin-container git://git.openstack.org/openstack/devstack-plugin-container
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=0
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
export PROJECTS="openstack/devstack-plugin-container $PROJECTS"
# Keep localrc to be able to set some vars in post_test_hook
export KEEP_LOCALRC=1
function gate_hook {{
bash -xe $BASE/new/devstack-plugin-container/contrib/gate_hook.sh
}}
export -f gate_hook
function post_test_hook {{
bash -xe $BASE/new/devstack-plugin-container/contrib/post_test_hook.sh fullstack
}}
export -f post_test_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
publishers:
- test-results
- devstack-logs
- console-log