project-config/jenkins/jobs/glance.yaml
Niall Bunting d93899e913 Enable g-api and n-api for glance_store functional
The check to test if glance_store should be installed from git
is under install_glance in the lib/glance. This is only called if
"is_service_enabled g-api n-api" is true, so these need to be in the
ENABLED_SERVICES.

This should solve the "The following LIBS_FROM_GIT were not installed
correct:  glance_store" error.

Change-Id: I33e3507c818d3f65242e11276f951b64a7da0cb0
2016-04-25 09:16:19 +00:00

81 lines
2.3 KiB
YAML

- job-template:
name: '{pipeline}-glanceclient-dsvm-functional{job-suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export BRANCH_OVERRIDE={branch-override}
export PROJECTS="openstack/python-glanceclient $PROJECTS"
export DEVSTACK_PROJECT_FROM_GIT=python-glanceclient
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
function post_test_hook {{
# Configure and run functional tests
$BASE/new/python-glanceclient/glanceclient/tests/functional/hooks/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
- job-template:
name: '{pipeline}-glance_store-dsvm-functional-{driver}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export ENABLED_SERVICES=g-api,n-api
export BRANCH_OVERRIDE={branch-override}
export PROJECTS="openstack/glance_store $PROJECTS"
export DEVSTACK_PROJECT_FROM_GIT=glance_store
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
function gate_hook {{
cd $BASE/new/glance_store/glance_store/tests/functional/hooks
./gate_hook.sh {driver}
}}
export -f gate_hook
function post_test_hook {{
cd $BASE/new/glance_store/glance_store/tests/functional/hooks
./post_test_hook.sh {driver}
}}
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