project-config/zuul.yaml
James E. Blair 40b7c904a9 Zuulv3: Add base-test job
We can use this to test changes to the base job before we make
them.

Change-Id: Idc4bdb9826aed970a69c6972d508a382c03ef00e
2017-06-30 10:03:00 -07:00

70 lines
2.3 KiB
YAML

- pipeline:
name: check
manager: independent
trigger:
gerrit:
- event: patchset-created
- event: comment-added
comment: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*(recheck|reverify)
success:
gerrit:
verified: 1
failure:
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: playbooks/base/pre
post-run: playbooks/base/post
roles:
- zuul: openstack-infra/openstack-zuul-roles
# TODO(jeblair): This will only work for our current 6 digit
# change numbers. We have a plan to do the formatting in the log
# publishing playbook and pass the information back to zuul. That
# will obsolete this. Also the uuid thing is obviously
# ridiculous. That will be fixed too.
success-url: http://logs.openstack.org/{change.number[4]}{change.number[5]}/{change.number}/{change.patchset}/{pipeline.name}/{build.uuid[0]}{build.uuid[1]}{build.uuid[2]}{build.uuid[3]}{build.uuid[4]}{build.uuid[5]}{build.uuid[6]}/
failure-url: http://logs.openstack.org/{change.number[4]}{change.number[5]}/{change.number}/{change.patchset}/{pipeline.name}/{build.uuid[0]}{build.uuid[1]}{build.uuid[2]}{build.uuid[3]}{build.uuid[4]}{build.uuid[5]}{build.uuid[6]}/
timeout: 1800
vars:
zuul_workspace_root: /home/zuul
nodes:
- name: ubuntu-xenial
label: ubuntu-xenial
- job:
name: base-test
description: |
A job to test changes to the base job without disturbing the
main job in production. Not for general use.
parent: base
pre-run: playbooks/base-test/pre
post-run: playbooks/base-test/post
- project:
name: openstack-infra/openstack-zuul-jobs
check:
jobs: []
- project:
name: openstack-infra/openstack-zuul-roles
check:
jobs: []
- project:
name: openstack-infra/zuul
check:
jobs: []