Separate reporters from triggers
Allows multiple reports per a patchset to be sent to pluggable
destinations. These are configurable per pipeline and, if not
specified, defaults to the legacy behaviour of reporting back only
to gerrit.
Having multiple reporting methods means only certain success/failure
/start parameters will apply to certain reporters. Reporters are
listed as keys under each of those actions.
This means that each key under success/failure/start is a reporter and the
dictionaries under those are sent to the reporter to deal with.
Change-Id: I80d7539772e1485d5880132f22e55751b25ec198
diff --git a/tests/fixtures/layouts/good_layout.yaml b/tests/fixtures/layouts/good_layout.yaml
index 15be6ef..4bd5e70 100644
--- a/tests/fixtures/layouts/good_layout.yaml
+++ b/tests/fixtures/layouts/good_layout.yaml
@@ -8,9 +8,11 @@
gerrit:
- event: patchset-created
success:
- verified: 1
+ gerrit:
+ verified: 1
failure:
- verified: -1
+ gerrit:
+ verified: -1
- name: post
manager: IndependentPipelineManager
@@ -28,15 +30,18 @@
- event: comment-added
approval:
- approved: 1
- success:
- verified: 2
- code-review: 1
- submit: true
- failure:
- verified: -2
- workinprogress: true
start:
- verified: 0
+ gerrit:
+ verified: 0
+ success:
+ gerrit:
+ verified: 2
+ code-review: 1
+ submit: true
+ failure:
+ gerrit:
+ verified: -2
+ workinprogress: true
jobs:
- name: ^.*-merge$