project-config/jenkins/jobs/windmill.yaml
Paul Belanger 5befdc1b74 Add periodic job to publishimages for windmill
Now that our experimental job is working, we can publish images. I'll
remove our experimental job in a follow up patch.

Change-Id: Ia856738112db841a918c20cea4adf3ea1e3391f4
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-12-20 19:24:20 -05:00

101 lines
2.3 KiB
YAML

- builder:
name: windmill-checkout
builders:
- shell: |
#!/bin/bash -xe
CLONEMAP=`mktemp`
function cleanup {
rm -f $CLONEMAP
}
trap cleanup EXIT
cat > $CLONEMAP << EOF
clonemap:
- name: openstack/windmill
dest: .
EOF
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
git://git.openstack.org openstack/windmill
- job-template:
name: '{pipeline}-windmill-{scenario}-{ostype}{suffix}'
node: '{ostype}'
builders:
- print-template-name:
template-name: "{template-name}"
- windmill-checkout
- run-tox:
envlist: "{scenario}"
publishers:
- console-log
- job-template:
name: 'windmill-buildimages-{ostype}{suffix}'
node: '{ostype}'
builders:
- print-template-name:
template-name: "{template-name}"
- windmill-checkout
- run-tox:
envlist: 'build-images'
wrappers:
- build-timeout:
timeout: 60
publishers:
- console-log
- job-template:
name: 'windmill-publishimages-{ostype}{suffix}'
node: '{ostype}'
builders:
- print-template-name:
template-name: "{template-name}"
- windmill-checkout
- run-tox:
envlist: 'publish-images'
wrappers:
- build-timeout:
timeout: 60
publishers:
- scp:
site: 'tarballs.openstack.org'
files:
- source: 'images/*.tgz'
target: 'tarballs/windmill/images/'
- console-log
- job-group:
name: 'windmill-jobs'
jobs:
- '{pipeline}-windmill-{scenario}-{ostype}{suffix}':
suffix: '-nv'
ostype:
- centos-7
- fedora-24
- ubuntu-trusty
- ubuntu-xenial
pipeline: gate
scenario:
- deploy
- '{pipeline}-windmill-{scenario}-{ostype}{suffix}':
suffix: ''
ostype:
- ubuntu-trusty
- ubuntu-xenial
pipeline: gate
scenario:
- deploy
- 'windmill-buildimages-{ostype}{suffix}':
suffix: ''
ostype: ubuntu-trusty
- 'windmill-publishimages-{ostype}{suffix}':
suffix: ''
ostype: ubuntu-trusty