zuul/tests/fixtures/layout-requirement-username.yaml
Joshua Hesketh b2068e80a8 Add support for negative requirements
This change adds support for false matching of requirements. To make
this useful you can now require all approvals match a requirement or
only one (ie any).

Therefore depreciate require-approvals, replacing with
require-approvals-any and a new require-approvals-all.

Change-Id: I458e677315ccb90d64cd0c0e734951141324a9c3
2015-06-05 13:21:39 +10:00

38 lines
695 B
YAML

pipelines:
- name: pipeline
manager: IndependentPipelineManager
require:
any-approval:
- username: jenkins
trigger:
gerrit:
- event: comment-added
success:
gerrit:
verified: 1
failure:
gerrit:
verified: -1
- name: trigger
manager: IndependentPipelineManager
trigger:
gerrit:
- event: comment-added
require-any-approval:
- username: jenkins
success:
gerrit:
verified: 1
failure:
gerrit:
verified: -1
projects:
- name: org/project1
pipeline:
- project1-pipeline
- name: org/project2
trigger:
- project2-trigger