Vitrage - Zuul/Jenkins update

1. Added vitrage.yaml - needed for setting up environment vars and
 run tempests tests.
2. Added Jenkins template jobs publish to pypi and python3, for the following projects:
   - vitrage
   - python-vitrageclient
   - vitrage-dashboard
   under projects.yaml and layout.yaml
3. Added an experimental template job for running tempest tests under layout.yaml

Change-Id: Ib882a4dd60d1b26caf861d74773b8e7f9e8aa2dd
This commit is contained in:
Noam Bloom 2016-04-12 17:33:36 +03:00
parent aa8aba5522
commit 1e9c343f07
3 changed files with 67 additions and 0 deletions

View File

@ -7434,6 +7434,7 @@
jobs:
- python-jobs
- pypi-jobs
- project:
name: python-watcherclient
@ -8788,6 +8789,12 @@
jobs:
- python-jobs
- pypi-jobs
- '{pipeline}-vitrage-dsvm{job-suffix}':
pipeline: gate
node: ubuntu-trusty
job-suffix: '-nv'
branch-override: default
- project:
name: vitrage-dashboard
@ -8795,6 +8802,7 @@
jobs:
- python-jobs
- pypi-jobs
- project:
name: vitrage-specs

48
jenkins/jobs/vitrage.yaml Normal file
View File

@ -0,0 +1,48 @@
- job-template:
name: '{pipeline}-vitrage-dsvm{job-suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 130
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export PROJECTS="openstack/python-vitrageclient $PROJECTS"
export PROJECTS="openstack/vitrage $PROJECTS"
export PROJECTS="openstack/vitrage-dashboard $PROJECTS"
export ENABLED_SERVICES=tempest
export DEVSTACK_LOCAL_CONFIG="enable_plugin vitrage git://git.openstack.org/openstack/vitrage"
function pre_test_hook {{
cd $BASE/new/vitrage/devstack
./pre_test_hook.sh
}}
export -f pre_test_hook
function gate_hook {{
cd $BASE/new/vitrage/devstack
./gate_hook.sh
}}
export -f gate_hook
function post_test_hook {{
cd $BASE/new/vitrage/devstack
./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:
- test-results
- devstack-logs
- console-log

View File

@ -10249,6 +10249,9 @@ projects:
template:
- name: merge-check
- name: python-jobs
- name: python3-jobs
- name: check-requirements
- name: publish-to-pypi
- name: openstack/python-watcherclient
template:
@ -11686,11 +11689,19 @@ projects:
template:
- name: merge-check
- name: python-jobs
- name: python3-jobs
- name: check-requirements
- name: publish-to-pypi
experimental:
- gate-vitrage-dsvm-nv
- name: openstack/vitrage-dashboard
template:
- name: merge-check
- name: python-jobs
- name: python3-jobs
- name: check-requirements
- name: publish-to-pypi
- name: openstack/vitrage-specs
template: