project-config/jenkins/jobs/windmill.yaml
Paul Belanger 274f6782de Always clone openstack/windmill for jobs
Since windmill-jobs will run under multiple projects, we need to
always check out openstack/windmill, not the $ZUUL_PROJECT.

Change-Id: If03d82c599889b45d8e51e004e50d89f54429334
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-02 21:23:01 -05:00

58 lines
1.5 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: 'devstack-{ostype}'
builders:
- print-template-name:
template-name: "{template-name}"
- windmill-checkout
- 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:
- centos7
- trusty
pipeline: gate
scenario:
- deploy
- '{pipeline}-windmill-{scenario}-{ostype}{job-suffix}':
job-suffix: ''
ostype:
- centos7
- trusty
pipeline: gate
scenario:
- deploy