Browse Source

Add sample configs

Change-Id: Id4d563f97568f7a67985ca5a67761804d89b291f
changes/07/8207/2
James E. Blair 10 years ago
parent
commit
fb135a3a9e
  1. 42
      etc/layout.yaml-sample
  2. 44
      etc/logging.conf-sample
  3. 14
      etc/zuul.conf-sample

42
etc/layout.yaml-sample

@ -0,0 +1,42 @@
queues:
- name: check
manager: IndependentQueueManager
trigger:
- event: patchset-uploaded
success:
verified: 1
failure:
verified: -1
- name: post
manager: IndependentQueueManager
trigger:
- event: ref-updated
ref: ^(?!refs/).*$
- name: gate
manager: DependentQueueManager
trigger:
- event: comment-added
approval:
- approved: 1
success:
verified: 2
submit: true
failure:
verified: -2
jobs:
- name: ^.*-merge$
failure-message: Unable to merge change, please rebase and try again.
projects:
- name: example/project
check:
- project-merge:
- project-test
gate:
- project-merge:
- project-test
post:
- project-publish

44
etc/logging.conf-sample

@ -0,0 +1,44 @@
[loggers]
keys=root,zuul,gerrit
[handlers]
keys=console,debug,normal
[formatters]
keys=simple
[logger_root]
level=WARNING
handlers=console
[logger_zuul]
level=DEBUG
handlers=debug,normal
qualname=zuul
[logger_gerrit]
level=DEBUG
handlers=debug,normal
qualname=gerrit
[handler_console]
level=WARNING
class=StreamHandler
formatter=simple
args=(sys.stdout,)
[handler_debug]
level=DEBUG
class=logging.handlers.TimedRotatingFileHandler
formatter=simple
args=('/var/log/zuul/debug.log', 'midnight', 1, 30,)
[handler_normal]
level=INFO
class=logging.handlers.TimedRotatingFileHandler
formatter=simple
args=('/var/log/zuul/zuul.log', 'midnight', 1, 30,)
[formatter_simple]
format=%(asctime)s %(levelname)s %(name)s: %(message)s
datefmt=

14
etc/zuul.conf-sample

@ -0,0 +1,14 @@
[jenkins]
server=https://jenkins.example.com
user=jenkins
apikey=1234567890abcdef1234567890abcdef
[gerrit]
server=review.example.com
user=jenkins
sshkey=/home/jenkins/.ssh/id_rsa
[zuul]
layout_config=/etc/zuul/layout.yaml
log_config=/etc/zuul/logging.yaml
pidfile=/var/run/zuul/zuul.pid
Loading…
Cancel
Save