project-config/jenkins/jobs/windmill.yaml

61 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:
- centos-7
- devstack-centos7
- ubuntu-trusty
pipeline: gate
scenario:
- deploy
- '{pipeline}-windmill-{scenario}-{ostype}{job-suffix}':
job-suffix: ''
ostype:
- centos-7
- devstack-centos7
- ubuntu-trusty
pipeline: gate
scenario:
- deploy