00af7552bb
Currently we were generating images daily, and timestamping it, also creating the latest one with fedora-atomic-f23-dib name. This was causing that directory was filled with images daily, growing in size. There is currently no cleanup process available, so this cannot be maintained. So instead of that, we will only publish the latest image, after validation, with a fixed name. Images are validated and not copied if they are not successful, so this will be safe to land. Change-Id: I7fcbb6bed034557969067366e1dc2f51e9fbb1b8
98 lines
2.8 KiB
YAML
98 lines
2.8 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
|
|
|
|
IMAGE_NAME="fedora-atomic-f23-dib"
|
|
DIB_RELEASE="23" disk-image-create -x -o $WORKSPACE/$IMAGE_NAME fedora-atomic
|
|
|
|
# validate image
|
|
./openstack/magnum/magnum/elements/fedora-atomic/validate_atomic_image.sh $WORKSPACE/${IMAGE_NAME}.qcow2
|
|
|
|
publishers:
|
|
- scp:
|
|
site: 'tarballs.openstack.org'
|
|
files:
|
|
- source: '*.qcow2'
|
|
target: 'tarballs/magnum/images'
|
|
keep-hierarchy: false
|
|
copy-after-failure: false
|
|
- console-log
|