project-config/jenkins/jobs/freezer.yaml
Andreas Jaeger 6da9309ec7 Use local_conf where possible
Use local_conf stanz for some more files where possible.

Change-Id: I243894987593aa5f51e28564761f0679676f3d30
2017-07-15 19:04:49 +02:00

59 lines
2.2 KiB
YAML

- job-template:
name: 'gate-osbackup-{name}-dsvm-{node}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- local_conf:
conf: |
[[local|localrc]]
# enable freezer-agent and freezer-scheduler
enable_plugin freezer git://git.openstack.org/openstack/freezer
# enable freezer-api and python-freezerclient
enable_plugin freezer-api https://git.openstack.org/openstack/freezer-api
# enable freezer-web-ui and python-freezerclient
enable_plugin freezer-web-ui https://git.openstack.org/openstack/freezer-web-ui
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
# checkout freezer components
export PROJECTS="openstack/freezer-api $PROJECTS"
export PROJECTS="openstack/freezer-web-ui $PROJECTS"
export PROJECTS="openstack/freezer $PROJECTS"
export PROJECTS="openstack/python-freezerclient $PROJECTS"
export DEVSTACK_GATE_HORIZON=1
# tempest config
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
TEMPEST_REGEX="{name}_tempest_plugin"
export DEVSTACK_GATE_TEMPEST_REGEX=${{TEMPEST_REGEX/\-/\_ }}
# which repo is being tested
export DEVSTACK_PROJECT_FROM_GIT={name}
# This ensures that if we set override branch to something
# else, we still take repo being tested from the zuul branch
# name. So override branch can be 'stable/mitaka' but we can
# test master changes.
uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'`
export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH
function gate_hook {{
source $BASE/new/{name}/devstack/gate_hook.sh
}}
export -f gate_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