Add OpenStack Python SDK gate
Add a gate to run some basic functional tests for the Python SDK. Change-Id: I4feec23f0f711dfe422af47a8e391d5a560e9ea9
This commit is contained in:
parent
edd6e518b5
commit
37fc7e318b
@ -4953,6 +4953,16 @@
|
||||
|
||||
jobs:
|
||||
- python-jobs
|
||||
- '{pipeline}-sdk-dsvm-functional{branch-designator}':
|
||||
pipeline: check
|
||||
node: 'devstack-precise || devstack-trusty'
|
||||
branch-designator: ''
|
||||
branch-override: default
|
||||
- '{pipeline}-sdk-dsvm-functional{branch-designator}':
|
||||
pipeline: gate
|
||||
node: 'devstack-precise || devstack-trusty'
|
||||
branch-designator: ''
|
||||
branch-override: default
|
||||
- pypi-jobs
|
||||
|
||||
|
||||
|
38
jenkins/jobs/sdk.yaml
Normal file
38
jenkins/jobs/sdk.yaml
Normal file
@ -0,0 +1,38 @@
|
||||
- job-template:
|
||||
name: '{pipeline}-sdk-dsvm-functional{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_UNSTACK=0
|
||||
export DEVSTACK_GATE_TIMEOUT=120
|
||||
export DEVSTACK_GATE_TEMPEST=0
|
||||
export DEVSTACK_GATE_EXERCISES=0
|
||||
export DEVSTACK_GATE_INSTALL_TESTONLY=1
|
||||
export BRANCH_OVERRIDE={branch-override}
|
||||
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
||||
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
||||
fi
|
||||
|
||||
function post_test_hook {{
|
||||
bash -xe $BASE/new/python-openstacksdk/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
|
@ -6543,6 +6543,10 @@ projects:
|
||||
- name: check-requirements
|
||||
- name: pypy-jobs
|
||||
- name: publish-to-pypi
|
||||
check:
|
||||
- check-sdk-dsvm-functional
|
||||
gate:
|
||||
- gate-sdk-dsvm-functional
|
||||
post:
|
||||
- python-openstacksdk-coverage
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user