Merge "Add functional testing jobs to GCE API project."

This commit is contained in:
Jenkins 2015-10-24 23:28:36 +00:00 committed by Gerrit Code Review
commit cded74082b
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

@ -1413,6 +1413,16 @@
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:
name: gear

View File

@ -971,6 +971,12 @@ jobs:
- name: gate-ec2-api-python34
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
voting: false
@ -4978,14 +4984,12 @@ projects:
- name: openstack/gce-api
template:
- name: python-jobs
- name: merge-check
- name: check-requirements
check:
- gate-gce-api-pep8
- gate-gce-api-python27
gate:
- gate-gce-api-pep8
- gate-gce-api-python27
- gate-functional-neutron-dsvm-gceapi
- gate-functional-nova-network-dsvm-gceapi
- name: openstack/gerrit-dash-creator
template: