project-config/jenkins/jobs/nova.yaml
Andreas Jaeger 43c71fa427 Cleanup PROJECTS and DEVSTACK_PROJECT_FROM_GIT
Change Id2caf9561b361c1d4950856423282535d067e015 for devstack adds all
repositories in DEVSTACK_PROJECT_FROM_GIT to PROJECTS, so no need to add
repos in jobs to PROJECTS if there are in DEVSTACK_PROJECT_FROM_GIT.

This change went through all of jenkins/jobs and removed PROJECTS where
there is direct 1:1 correspondence. For a few files, especially ironic
and freezer, this was not doable.

Change-Id: I4b51e33b9bc0f1cb7948b69abf104e0b57b9ff52
2017-05-01 19:07:06 +02:00

190 lines
6.6 KiB
YAML

- job-template:
name: '{pipeline}-novaclient-dsvm-functional{special}-{node}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 120
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export BRANCH_OVERRIDE={branch-override}
export DEVSTACK_PROJECT_FROM_GIT=python-novaclient
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
# This ensures that if we set override branch to something
# else, we still take python-novaclient from the zuul branch
# name. So override branch can be 'stable/mitaka' but we can
# test master changes.
uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'`
export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH
function post_test_hook {{
# Configure and run functional tests
$BASE/new/python-novaclient/novaclient/tests/functional/hooks/post_test_hook.sh
}}
if [ "{special}" == "-identity-v3-only" ] ; then
export DEVSTACK_LOCAL_CONFIG="ENABLE_IDENTITY_V2=False"
elif [ "{special}" == "-neutron" ] ; then
export DEVSTACK_GATE_NEUTRON=1
fi
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}-osc-placement-dsvm-functional{special}-{node}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 120
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export BRANCH_OVERRIDE={branch-override}
export DEVSTACK_PROJECT_FROM_GIT=osc-placement
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
# This ensures that if we set override branch to something
# else, we still take osc-placement from the zuul branch
# name. So override branch can be 'stable/mitaka' but we can
# test master changes.
export OVERRIDE_OSC_PLACEMENT_PROJECT_BRANCH=$ZUUL_BRANCH
function post_test_hook {{
# Configure and run functional tests
$BASE/new/osc-placement/osc_placement/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
# This runs single-node full tempest with neutron plus cells v2 and
# the placement-api service. The intent of this job is to test the latest
# features in Nova which might be considered experimental in master.
# Release specific notes:
# -----------------------
# Newton: Created job; placement and cells v2 were optional.
# Ocata: placement and cells v2 are default and required.
# Pike: Enabled send_service_user_token.
- job-template:
name: '{pipeline}-tempest-dsvm-neutron-nova-next-full-{node}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 180
- timestamps
builders:
- print-template-name:
template-name: "{template-name}"
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
# NOTE(mriedem): placement is required starting in Ocata.
export ENABLED_SERVICES=placement-api
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_FULL=1
export DEVSTACK_GATE_NEUTRON=1
# NOTE(mriedem): cells v2 is required starting in Ocata.
export DEVSTACK_LOCAL_CONFIG="NOVA_CONFIGURE_CELLSV2=True"
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
# NOTE(mriedem): NOVA_USE_SERVICE_TOKEN is available starting in Pike
stable_compare="stable/[a-o]"
if [[ ! "$ZUUL_BRANCH" =~ $stable_compare ]] ; then
export DEVSTACK_LOCAL_CONFIG+=$'\n'"NOVA_USE_SERVICE_TOKEN=True"
fi
function post_test_hook {{
if [ -f $BASE/new/nova/tools/hooks/post_test_hook.sh ]; then
$BASE/new/nova/tools/hooks/post_test_hook.sh
fi
}}
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
# This runs single-node full grenade upgrade with neutron plus cells v2 and
# the placement-api service. Note that cells v2 and placement are required
# starting in Ocata, but this job can be run against stable/ocata changes
# which will perform the upgrade testing from a Xenial Newton node to Ocata.
# This job makes less sense when upgrading from Ocata to Pike so it should
# be pinned to just stable/ocata changes for Xenial nodes.
- job-template:
name: '{pipeline}-grenade-dsvm-neutron-nova-next-{node}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 180
- timestamps
builders:
- print-template-name:
template-name: "{template-name}"
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export ENABLED_SERVICES=placement-api
export PROJECTS="openstack-dev/grenade $PROJECTS"
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_GRENADE=pullup
export DEVSTACK_GATE_NEUTRON=1
# NOTE(mriedem): cells v2 should be the default after newton-eol
export DEVSTACK_LOCAL_CONFIG="NOVA_CONFIGURE_CELLSV2=True"
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
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