project-config/jenkins/jobs/magnum.yaml

96 lines
2.7 KiB
YAML

- job-template:
name: '{pipeline}-functional-dsvm-magnum-{coe}{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 DEVSTACK_GATE_TEMPEST=0
export DEVSTACK_GATE_NEUTRON=1
# Enable tempest for tempest plugin
export ENABLED_SERVICES=tempest
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
export PROJECTS="openstack/magnum $PROJECTS"
export PROJECTS="openstack/python-magnumclient $PROJECTS"
# Keep localrc to be able to set some vars in post_test_hook
export KEEP_LOCALRC=1
function gate_hook {{
cd /opt/stack/new/magnum/
./magnum/tests/contrib/gate_hook.sh {coe}
}}
export -f gate_hook
function post_test_hook {{
source $BASE/new/devstack/accrc/admin/admin
cd /opt/stack/new/magnum/
./magnum/tests/contrib/post_test_hook.sh {coe}
}}
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
- job:
name: 'dib-buildimage-atomic-f23'
node: ubuntu-trusty
wrappers:
- build-timeout:
timeout: 60
- timestamps
builders:
- link-logs
- net-info
- install-distro-packages
- shell: |
#!/bin/bash -eux
cd ~
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
git://git.openstack.org \
openstack/diskimage-builder \
openstack/dib-utils \
openstack/magnum
export PATH=$PATH:$(pwd)/openstack/dib-utils/bin
export PATH=$PATH:$(pwd)/openstack/diskimage-builder/bin
export ELEMENTS_PATH=./openstack/diskimage-builder/elements:./openstack/magnum/magnum/elements
export DIB_IMAGE_SIZE=2.2
./openstack/magnum/magnum/elements/fedora-atomic/install_imagebuild_deps.sh
DIB_RELEASE="23" disk-image-create \
-o $WORKSPACE/fedora-atomic-f23-dib fedora-atomic
publishers:
- scp:
site: 'tarballs.openstack.org'
files:
- source: 'fedora-atomic-f23-dib.qcow2'
target: 'tarballs/magnum/images'
keep-hierarchy: false
copy-after-failure: false
- console-log