project-config/jenkins/jobs/windmill.yaml
Clark Boylan 6da143d2cd Stop uploading to job logs to swift
We have some headroom on the logs filesystem and this allows us to go
back to more reliable methods of grabbing logs. Specifically we are not
required to have http access back to the jenkins master from every job
that runs into order to get the console logs then upload them to swift.

Change-Id: Ie8479c224b2fd3c3efca4e1bf4157656540eccff
2016-04-15 10:20:25 -07: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:
- console-log
- job-group:
name: 'windmill-jobs'
jobs:
- '{pipeline}-windmill-{scenario}-{ostype}{job-suffix}':
job-suffix: '-nv'
ostype:
- centos-7
- ubuntu-trusty
pipeline: gate
scenario:
- deploy
- '{pipeline}-windmill-{scenario}-{ostype}{job-suffix}':
job-suffix: ''
ostype:
- centos-7
- ubuntu-trusty
pipeline: gate
scenario:
- deploy