zuul/tests/fixtures/layouts/bad_template2.yaml
James E. Blair 6c358e72ea Support multiple triggers
Add the ability for Zuul to accept inputs from multiple trigger
sources simultaneously.

Pipelines are associated with exactly one trigger, which must now
be named in the configuration file.

Co-Authored-By: Monty Taylor <mordred@inaugust.com>

Change-Id: Ief2b31a7b8d85d30817f2747c1e2635f71ea24b9
2013-08-01 11:56:52 -07:00

24 lines
591 B
YAML

# Template is going to be called with an extra parameter
pipelines:
- name: 'check'
manager: IndependentPipelineManager
trigger:
gerrit:
- event: patchset-created
project-templates:
- name: template-generic
check:
# Template only uses the 'project' parameter'
- '{project}-merge'
projects:
- name: organization/project
template:
- name: template-generic
project: 'MyProjectName'
# Feed an extra parameters which is not going to be used
# by the template. That is an error.
extraparam: 'IShouldNotBeSet'