Sergey Skripnick 9dee04f4b7 Change scenario name in rally-*-fakevirt jobs
We have 3 rally job templates: default, neutron and fakevirt. So
scenario name should be generated according to template:

 {project}.yaml - for default
 {project}-neutron.yaml - for neutron
 {project}-fakevirt.yaml - for nova with fakevirt driver

Change-Id: I2521ddf14b187595e44333cbaf747d1a182cf943
2014-08-07 23:09:11 +03:00

170 lines
4.2 KiB
YAML

- job-template:
name: 'gate-rally-install-{node}'
node: '{node}'
builders:
- link-logs
- gerrit-git-prep
- shell: "tests_ci/test_install.sh"
publishers:
- console-log
- publisher:
name: rally-plot
publishers:
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: 'rally-plot/**'
keep-hierarchy: true
copy-after-failure: true
- builder:
name: devstack-rally-gate
builders:
- link-logs
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PROJECTS="stackforge/rally $PROJECTS"
export PROJECTS="openstack/ceilometer $PROJECTS"
export DEVSTACK_GATE_NEUTRON={neutron}
export DEVSTACK_GATE_TEMPEST_LARGE_OPS={large_ops}
export DEVSTACK_GATE_EXERCISES=0
export DEVSTACK_GATE_TIMEOUT=120
export RALLY_SCENARIO={scenario}
ENABLED_SERVICES=rally,ceilometer-acompute,ceilometer-acentral,ceilometer-api
ENABLED_SERVICES+=,ceilometer-anotification,ceilometer-collector,
ENABLED_SERVICES+=,ceilometer-alarm-evaluator,ceilometer-alarm-notifier,
export ENABLED_SERVICES
function pre_test_hook {{
# Install rally-devstack integration
cp -r $BASE/new/rally/contrib/devstack/* $BASE/new/devstack/
}}
export -f pre_test_hook
function post_test_hook {{
$BASE/new/rally/tests_ci/rally-gate.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
- job-template:
name: 'gate-rally-dsvm-{name}'
node: 'devstack-precise || devstack-trusty'
wrappers:
- build-timeout:
timeout: 125
- timestamps
builders:
- devstack-rally-gate:
scenario: '{name}'
neutron: '0'
large_ops: '0'
publishers:
- devstack-logs
- console-log
- rally-plot
- job-template:
name: 'gate-rally-dsvm-neutron-{name}'
node: 'devstack-precise || devstack-trusty'
wrappers:
- build-timeout:
timeout: 125
- timestamps
builders:
- devstack-rally-gate:
scenario: '{name}-neutron'
neutron: '1'
large_ops: '0'
publishers:
- devstack-logs
- console-log
- rally-plot
- job-template:
name: 'gate-rally-dsvm-fakevirt-{name}'
node: 'devstack-precise || devstack-trusty'
wrappers:
- build-timeout:
timeout: 125
- timestamps
builders:
- devstack-rally-gate:
scenario: '{name}-fakevirt'
neutron: '0'
large_ops: '10'
publishers:
- devstack-logs
- console-log
- rally-plot
- job:
name: 'gate-rally-dsvm-cli'
node: 'devstack-precise || devstack-trusty'
builders:
- link-logs
- devstack-checkout
- shell: |
#/bin/bash -xe
export PROJECTS="stackforge/rally $PROJECTS"
export ENABLED_SERVICES=rally
function pre_test_hook {
# Install rally-devstack integration
cp -r $BASE/new/rally/contrib/devstack/* $BASE/new/devstack/
}
function post_test_hook {
cd $BASE/new/rally
sudo -H -u stack tox -ecli -v
.tox/cli/bin/python /usr/local/jenkins/slave_scripts/subunit2html.py .testrepository/subunit.log $WORKSPACE/results.html
gzip -9 $WORKSPACE/results.html
.tox/cli/bin/subunit-stats .testrepository/subunit.log
}
export -f pre_test_hook
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
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: 'results.html.gz'
- job-group:
name: rally-jobs
jobs:
- 'gate-rally-dsvm-{name}'
- 'gate-rally-dsvm-neutron-{name}'
- 'gate-rally-dsvm-fakevirt-{name}'