ec2api tempest job

This creates a non voting check job for ec2api changes that includes
setting up a devstack environment using an external devstack plugin in
a zuul compatible way. This is also a good reference for other teams
that would like test jobs which include devstack external plugins.

Change-Id: I8e31fd4f771e498efd5d8671acee0a3c3c8a184e
This commit is contained in:
Sean Dague 2015-02-06 13:59:13 -05:00
parent 466291e93d
commit 53e65fd614
3 changed files with 51 additions and 0 deletions

42
jenkins/jobs/ec2-api.yaml Normal file
View File

@ -0,0 +1,42 @@
- job-template:
name: '{pipeline}-tempest-dsvm-ec2api{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
# NOTE(sdague): which of tempest / neutron should be run
# here is pretty up for grabs, but this can be adjusted over
# time.
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_NEUTRON=1
export DEVSTACK_GATE_TEMPEST_FULL=1
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
# Because we are testing a non standard project, add the
# our project repository. This makes zuul do the right
# reference magic for testing changes.
export PROJECTS="stackforge/ec2-api $PROJECTS"
# note the actual url here is somewhat irrelevant because it
# caches in nodepool, however make it a valid url for
# documentation purposes.
export DEVSTACK_LOCAL_CONFIG="enable_plugin ec2-api git://git.openstack.org/stackforge/ec2-api"
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

@ -3206,6 +3206,11 @@
jobs:
- python-jobs
- '{pipeline}-tempest-dsvm-ec2api{branch-designator}':
pipeline: check
node: 'devstack-precise || devstack-trusty'
branch-designator: ''
branch-override: default
- project:
name: ec2-driver

View File

@ -596,6 +596,9 @@ jobs:
- name: check-tempest-dsvm-f21
branch: ^(?!stable)
voting: false
- name: check-tempest-dsvm-ec2api
branch: ^(?!stable)
voting: false
- name: check-tempest-dsvm-centos7
branch: ^(?!stable/icehouse).*$
voting: false
@ -4471,6 +4474,7 @@ projects:
check:
- gate-ec2-api-pep8
- gate-ec2-api-python27
- check-tempest-dsvm-ec2api
gate:
- gate-ec2-api-pep8
- gate-ec2-api-python27