Add functional testing jobs to GCE API project.

We are working on resuscitation of GCE API project,
and we need more testing jobs to catch errors before commit something.

Change-Id: Ice39ef1e3684e1e0ec0e1bb14d095a06017da3a2
This commit is contained in:
alexey-mr 2015-10-23 16:13:34 +03:00
parent 97b97e271f
commit e5bc3d7cdf
3 changed files with 101 additions and 5 deletions

82
jenkins/jobs/gce-api.yaml Normal file
View File

@ -0,0 +1,82 @@
- job-template:
name: '{pipeline}-functional-neutron-dsvm-gceapi{branch-designator}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 125
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=120
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_NOTESTS=1
export DEVSTACK_GATE_NEUTRON=1
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
export PROJECTS="openstack/gce-api $PROJECTS"
export DEVSTACK_LOCAL_CONFIG="enable_plugin gce-api git://git.openstack.org/openstack/gce-api"
function post_test_hook {{
source $BASE/new/devstack/accrc/admin/admin
cd /opt/stack/new/gce-api/
./gceapi/tests/contrib/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-template:
name: '{pipeline}-functional-nova-network-dsvm-gceapi{branch-designator}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 125
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=120
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_NOTESTS=1
export DEVSTACK_GATE_NEUTRON=0
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
export PROJECTS="openstack/gce-api $PROJECTS"
export DEVSTACK_LOCAL_CONFIG="enable_plugin gce-api git://git.openstack.org/openstack/gce-api"
function post_test_hook {{
source $BASE/new/devstack/accrc/admin/admin
cd /opt/stack/new/gce-api/
./gceapi/tests/contrib/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

View File

@ -1410,6 +1410,16 @@
jobs: jobs:
- python-jobs - python-jobs
- '{pipeline}-functional-neutron-dsvm-gceapi{branch-designator}':
pipeline: gate
node: 'devstack-precise || devstack-trusty'
branch-designator: ''
branch-override: default
- '{pipeline}-functional-nova-network-dsvm-gceapi{branch-designator}':
pipeline: gate
node: 'devstack-precise || devstack-trusty'
branch-designator: ''
branch-override: default
- project: - project:
name: gear name: gear

View File

@ -955,6 +955,12 @@ jobs:
- name: gate-ec2-api-python34 - name: gate-ec2-api-python34
branch: ^(?!stable/kilo).*$ branch: ^(?!stable/kilo).*$
- name: gate-functional-neutron-dsvm-gceapi
voting: false
- name: gate-functional-nova-network-dsvm-gceapi
voting: false
- name: gate-tempest-dsvm-ec2api - name: gate-tempest-dsvm-ec2api
voting: false voting: false
@ -4916,14 +4922,12 @@ projects:
- name: openstack/gce-api - name: openstack/gce-api
template: template:
- name: python-jobs
- name: merge-check - name: merge-check
- name: check-requirements - name: check-requirements
check: check:
- gate-gce-api-pep8 - gate-functional-neutron-dsvm-gceapi
- gate-gce-api-python27 - gate-functional-nova-network-dsvm-gceapi
gate:
- gate-gce-api-pep8
- gate-gce-api-python27
- name: openstack/gerrit-dash-creator - name: openstack/gerrit-dash-creator
template: template: