project-config/jenkins/jobs/windmill.yaml
Paul Belanger 0e7f251f12 Convert windmill jobs to bindep
Change-Id: I6c8d6bdcfe904e767c01c5ee5254cf376c169b01
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-03-04 12:22:03 -05:00

59 lines
1.6 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}{job-suffix}'
node: '{ostype}'
builders:
- print-template-name:
template-name: "{template-name}"
- windmill-checkout
- install-distro-packages
- shell: |
# Allow Jenkins user to ssh into localhost
ssh-keygen -f ~/.ssh/id_rsa -N ""
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh-keyscan localhost >> ~/.ssh/known_hosts
ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts
- tox:
envlist: "{scenario}"
publishers:
- zuul-swift-upload-console-log
- job-group:
name: 'windmill-jobs'
jobs:
- '{pipeline}-windmill-{scenario}-{ostype}{job-suffix}':
job-suffix: '-nv'
ostype:
- devstack-centos7
- ubuntu-trusty
pipeline: gate
scenario:
- deploy
- '{pipeline}-windmill-{scenario}-{ostype}{job-suffix}':
job-suffix: ''
ostype:
- devstack-centos7
- ubuntu-trusty
pipeline: gate
scenario:
- deploy