Move base job to project-config

This needs to be a trusted job because of the way we are performing
log copying.  Move it to this repo, which is trusted.

Change-Id: I6781923f08b39cfb6778ae581e0dea3b51ea31c4
Depends-On: Id12fb552f81e7eda9992694250582823be2c1a3c
This commit is contained in:
James E. Blair 2017-06-27 15:57:39 -07:00
parent 62ec53a776
commit 44836d8f02
3 changed files with 47 additions and 0 deletions

17
playbooks/base/post.yaml Normal file
View File

@ -0,0 +1,17 @@
- hosts: all
roles:
- collect-logs
---
- hosts: localhost
tasks:
- name: Add log server ssh key.
command: ssh-add /var/lib/zuul/ssh/static_id_rsa
- name: Add log server to inventory.
add_host:
name: static.openstack.org
groups: zuul_logserver
---
- hosts: zuul_logserver
roles:
- upload-logs

4
playbooks/base/pre.yaml Normal file
View File

@ -0,0 +1,4 @@
- hosts: all
roles:
- prepare-workspace
- openstack-info

View File

@ -13,6 +13,32 @@
gerrit:
verified: -1
- job:
name: base
description: |
The base job for OpenStack's installation of Zuul.
All jobs ultimately inherit from this. It runs a pre-playbook
which copies all of the job's prepared git repos on to all of
the nodes in the nodeset. It runs a post-playbook which copies
all of the files in the logs/ directory of every node on to the
logserver.
It also sets default timeout and nodeset values (which may be
overidden).
pre-run: base/pre
post-run: base/post
roles:
- zuul: openstack-infra/openstack-zuul-roles
success-url: http://logs.openstack.org/{change.number[:-2]}/{change.number}/{change.patchset}/{pipeline.name}/{buildset.uuid}/
failure-url: http://logs.openstack.org/{change.number[:-2]}/{change.number}/{change.patchset}/{pipeline.name}/{buildset.uuid}/
timeout: 1800
vars:
zuul_workspace_root: /home/zuul
nodes:
- name: ubuntu-xenial
label: ubuntu-xenial
- project:
name: openstack-infra/openstack-zuul-jobs
check: