project-config/jenkins/jobs/trove.yaml
Jeremy Stanley 0af9b2c178 Get rid of precise||trusty job node declarations
Between the Icehouse and Juno releases, OpenStack changed its
supported Ubuntu LTS platform from Precise to Trusty. In support of
continuing testing stable/icehouse and prior branches on Precise
while starting to test newer branches on Trusty, a branch-based
decision tree was introduced into our Zuul configuration by way of
complex parameter functions with an ever growing list of regular
expression matches on job names.

Now that Icehouse is EOL (in fact, Juno is too) this simply adds
unnecessary complexity and an attractive nuisance for cargo-cult
copying into new job and job-template definitions which don't even
need it. In preparation to remove the associated parameter
functions, get rid of multiple labels in all jobs and set them to
whatever label Zuul would ultimately select.

This change touches a vast number, possibly a majority, of our jobs
and so manual jenkins-jobs updates on all Jenkins masters will be
needed after this merges, before it's safe to approve the
corresponding Zuul configuration cleanup.

Change-Id: Ic952ee02da2c77fe2ace81c4e2fa87531be6119c
2015-12-21 20:52:17 +00:00

106 lines
3.4 KiB
YAML

- job-template:
name: 'gate-trove-buildimage-{datastore}'
node: bare-trusty
builders:
- link-logs
- net-info
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
sudo mkdir -p /opt/trove-image-build
sudo chown $(whoami) /opt/trove-image-build
export DEST=/opt/trove-image-build
export KEY_DIR=`pwd`/scripts/files/keys
cd scripts
./redstack build-image {datastore}
mv $HOME/images/ubuntu_{datastore}/ubuntu_{datastore}.qcow2 $WORKSPACE/{datastore}.qcow2
publishers:
- scp:
site: 'tarballs.openstack.org'
files:
- source: '{datastore}.qcow2'
target: 'tarballs/trove/images/ubuntu'
keep-hierarchy: false
copy-after-failure: false
- console-log
- job-template:
name: 'gate-trove-functional-dsvm-{datastore}{job-suffix}'
node: devstack-trusty
wrappers:
- build-timeout:
timeout: 145
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=140
export DEVSTACK_LOCAL_CONFIG="enable_plugin trove git://git.openstack.org/openstack/trove"
export PROJECTS="openstack/python-troveclient $PROJECTS"
export DEVSTACK_PROJECT_FROM_GIT=python-troveclient
export ENABLED_SERVICES=tempest,s-proxy,s-object,s-container,s-account,trove,tr-api,tr-tmgr,tr-cond
export PROJECTS="openstack/trove-integration openstack/diskimage-builder openstack/tripleo-image-elements $PROJECTS"
function post_test_hook {{
export BRIDGE_IP=10.1.0.1
export DEST=$BASE/new
export PATH_DEVSTACK_SRC=$DEST/devstack
cd /opt/stack/new/trove-integration/scripts
./redstack dsvm-gate-tests {datastore}
}}
export -f post_test_hook
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
- job-template:
name: '{pipeline}-tempest-dsvm-neutron-src-python-troveclient{job-suffix}'
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
export DEVSTACK_LOCAL_CONFIG="enable_plugin trove git://git.openstack.org/openstack/trove"
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_FULL=1
export DEVSTACK_GATE_NEUTRON=1
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
export PROJECTS="openstack/python-troveclient $PROJECTS"
export DEVSTACK_PROJECT_FROM_GIT=python-troveclient
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