project-config/jenkins/jobs/freezer.yaml
Jonas Pfannschmidt d748dc4c6f Enable freezer-api plugin in devstack job
This allows us to run integration tests that use freezer and
freezer-api.

Change-Id: I8e14430b8ec583c7c81ab73780e5744c0041e12e
2016-05-25 17:18:09 +01:00

126 lines
3.6 KiB
YAML

- job:
name: gate-freezer-devstack-dsvm
node: ubuntu-trusty
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export PROJECTS="openstack/freezer-api $PROJECTS"
export PROJECTS="openstack/freezer-web-ui $PROJECTS"
export PROJECTS="openstack/freezer $PROJECTS"
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
export DEVSTACK_GATE_TEMPEST_REGEX="freezer_tempest_plugin"
export DEVSTACK_LOCAL_CONFIG="enable_plugin freezer https://git.openstack.org/openstack/freezer"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin freezer-api https://git.openstack.org/openstack/freezer-api"
function gate_hook {
source $BASE/new/freezer/devstack/gate_hook.sh
}
export -f gate_hook
function post_test_hook {
cd /opt/stack/new/freezer/tests/integration/
./post_test_hook.sh
}
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:
- devstack-logs
- console-log
- job:
name: gate-freezer-web-ui-devstack-dsvm
node: ubuntu-trusty
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export PROJECTS="openstack/freezer-api $PROJECTS"
export PROJECTS="openstack/freezer-web-ui $PROJECTS"
export PROJECTS="openstack/freezer $PROJECTS"
export PROJECTS="openstack/python-freezerclient $PROJECTS"
function gate_hook {
$BASE/new/freezer-api/devstack/gate_hook.sh
}
export -f gate_hook
function post_test_hook {
cd /opt/stack/new/freezer-api/freezer_api/tests/
./post_test_hook.sh
}
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:
- devstack-logs
- console-log
- job:
name: gate-freezer-api-devstack-dsvm
node: ubuntu-trusty
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export PROJECTS="openstack/freezer-api $PROJECTS"
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
export DEVSTACK_GATE_TEMPEST_REGEX="freezer_api_tempest_plugin"
export DEVSTACK_LOCAL_CONFIG="enable_plugin freezer-api https://git.openstack.org/openstack/freezer-api"
function pre_test_hook {
source $BASE/new/freezer-api/freezer_api/tests/pre_test_hook.sh
}
export -f pre_test_hook
function gate_hook {
source $BASE/new/freezer-api/devstack/gate_hook.sh
}
export -f gate_hook
function post_test_hook {
source $BASE/new/freezer-api/freezer_api/tests/post_test_hook.sh
}
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:
- devstack-logs
- console-log