project-config/jenkins/jobs/designate.yaml
Kiall Mac Innes 5118c6fed7 Add tempest variations of Designate DSVM jobs
* Adds two new experimental jobs (Designate+Bind9/PowerDNS)
* Does not restrict execution branch yet, we'll want this to
  be Neuton+ as it moves over the check/gate queues. For now,
  i'd like to see just how badly the remaining changes below
  fail on other branches, as we may choose to include these
  on Mitaka.
* Replaces use of the gate / pre test / post tests hooks, as
  enough configurability is now exposed.
* Uses tempest in "all-plugin" mode, limiting to all tests
  containing "designate" in the name. Ideally, this would be
  changed to "full-plugin" mode, without the designate
  restriction, but this does not exist in tempest's tox.ini
* Attempts to be ready to add stable branch editions of this
  this using branch-override and job-suffix.

Change-Id: I8166d447802b4520c0721b9f006b59543b3b548c
2016-04-12 16:36:43 +01:00

193 lines
6.1 KiB
YAML

# Experimental job for Designate+Tempest
- job-template:
name: 'gate-tempest-dsvm-designate-{designate-driver}{job-suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- print-template-name:
template-name: "{template-name}"
- link-logs
- print-node-uuid
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
export DEVSTACK_GATE_TEMPEST_REGEX=designate
export DEVSTACK_LOCAL_CONFIG="enable_plugin designate git://git.openstack.org/openstack/designate"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_SERVICE_PORT_DNS=5322"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_BACKEND_DRIVER={designate-driver}"
export PROJECTS="openstack/designate $PROJECTS"
export PROJECTS="openstack/python-designateclient $PROJECTS"
export PROJECTS="openstack/designate-dashboard $PROJECTS"
export PROJECTS="openstack/designate-tempest-plugin $PROJECTS"
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
publishers:
- devstack-logs
- console-log
- job-template:
name: 'gate-designate-dsvm-{designate-driver}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_INSTALL_TESTONLY=1
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_NOTESTS=1
export DEVSTACK_GATE_DESIGNATE_DRIVER="{designate-driver}"
export PROJECTS="openstack/designate $PROJECTS"
export PROJECTS="openstack/python-designateclient $PROJECTS"
export PROJECTS="openstack/designate-dashboard $PROJECTS"
export PROJECTS="openstack/designate-tempest-plugin $PROJECTS"
if [[ "stable/kilo stable/liberty" =~ $ZUUL_BRANCH ]]; then
# Kilo/Liberty version uses the older 'hooks' approach to adding
# the Designate plugin
function gate_hook {{
cd /opt/stack/new/designate/contrib/devstack
./gate_hook.sh
}}
export -f gate_hook
function pre_test_hook {{
cd /opt/stack/new/designate/contrib/devstack
./pre_test_hook.sh
}}
export -f pre_test_hook
function post_test_hook {{
cd /opt/stack/new/designate/contrib/devstack
./post_test_hook.sh
}}
export -f post_test_hook
else
# Otherwise, enable the Designate devstack plugin.
export DEVSTACK_LOCAL_CONFIG="enable_plugin designate git://git.openstack.org/openstack/designate"
function gate_hook {{
cd /opt/stack/new/designate/devstack/gate
./gate_hook.sh
}}
export -f gate_hook
function post_test_hook {{
cd /opt/stack/new/designate/devstack/gate
./post_test_hook.sh
}}
export -f post_test_hook
fi
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
publishers:
- devstack-logs
- console-log
- job-template:
name: 'gate-designate-dsvm-{designate-driver}-postgres'
node: '{node}'
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_INSTALL_TESTONLY=1
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_NOTESTS=1
export DEVSTACK_GATE_DESIGNATE_DRIVER="{designate-driver}"
export DEVSTACK_GATE_POSTGRES=1
export PROJECTS="openstack/designate $PROJECTS"
export PROJECTS="openstack/python-designateclient $PROJECTS"
export PROJECTS="openstack/designate-dashboard $PROJECTS"
if [[ "stable/kilo stable/liberty" =~ $ZUUL_BRANCH ]]; then
# Kilo/Liberty version uses the older 'hooks' approach to adding
# the Designate plugin
function gate_hook {{
cd /opt/stack/new/designate/contrib/devstack
./gate_hook.sh
}}
export -f gate_hook
function pre_test_hook {{
cd /opt/stack/new/designate/contrib/devstack
./pre_test_hook.sh
}}
export -f pre_test_hook
function post_test_hook {{
cd /opt/stack/new/designate/contrib/devstack
./post_test_hook.sh
}}
export -f post_test_hook
else
# Otherwise, enable the Designate devstack plugin.
export DEVSTACK_LOCAL_CONFIG="enable_plugin designate git://git.openstack.org/openstack/designate"
function gate_hook {{
cd /opt/stack/new/designate/devstack/gate
./gate_hook.sh
}}
export -f gate_hook
function post_test_hook {{
cd /opt/stack/new/designate/devstack/gate
./post_test_hook.sh
}}
export -f post_test_hook
fi
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
publishers:
- devstack-logs
- console-log