project-config/jenkins/jobs/horizon.yaml
Timur Sufiev ef97d2fd98 Do not 'cd' from current workspace dir in horizon test hooks
So we can copy test artifacts to the current workspace dir, which name
otherwise needs to be passed into test hook. This is needed because
the job name (and consequently the workspace name) can change
independently from test hooks defined in horizon, and thus cannot be
hardcoded.

Needed-By: I63e45ee89711b429d0d878303aefeec4b159125a
Change-Id: I28d84235fb51a49492ed9c96794ba74f317f66b6
Partial-Bug: #1625253
2016-09-20 09:35:47 +00:00

116 lines
3.1 KiB
YAML

- job-template:
name: 'gate-horizon-dsvm-integration-{testtype}-{node}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 150
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- firefox-install
- xvfb-install
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=0
export DEVSTACK_GATE_EXERCISES=0
export DEVSTACK_GATE_INSTALL_TESTONLY=1
export DEVSTACK_GATE_NEUTRON=1
export DEVSTACK_GATE_SETTINGS=/opt/stack/new/horizon/tools/gate/integration/devstack_gate_rc
function pre_test_hook {{
/opt/stack/new/horizon/tools/gate/integration/pre_test_hook.sh '{testtype}'
}}
export -f pre_test_hook
function post_test_hook {{
/opt/stack/new/horizon/tools/gate/integration/post_test_hook.sh '{testtype}'
}}
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
- publish-test-reports
- console-log
- publisher:
name: publish-test-reports
publishers:
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: 'test_reports/**'
keep-hierarchy: true
copy-after-failure: true
- job-group:
name: 'horizon-dsvm-integration-jobs'
jobs:
- 'gate-horizon-dsvm-integration-{testtype}-{node}':
testtype: 'current'
node:
- ubuntu-trusty
- ubuntu-xenial
- 'gate-horizon-dsvm-integration-{testtype}-{node}':
testtype: 'deprecated'
node:
- ubuntu-trusty
- ubuntu-xenial
- job-template:
name: gate-horizon-selenium-headless-{node}
node: '{node}'
builders:
- zuul-git-prep-upper-constraints
- install-distro-packages
- revoke-sudo
- shell: |
#!/bin/bash -xe
NOSE_WITH_XUNIT=1 tox -evenv -- /bin/bash run_tests.sh -N --only-selenium --selenium-headless
publishers:
- console-log
- job-template:
name: gate-horizon-dsvm-tempest-plugin-{node}
node: '{node}'
wrappers:
- build-timeout:
timeout: 100
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_REGEX=horizon
export DEVSTACK_LOCAL_CONFIG="export TEMPEST_PLUGINS='/opt/stack/new/tempest-horizon'"
export PROJECTS="openstack/tempest-horizon $PROJECTS"
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