zuul/tests/fixtures/layout-smtp.yaml
Joshua Hesketh 5fea867c70 Add support for emailing results via SMTP
Utilises the new reporter plugin architecture to add support for
emailing success/failure messages based on layout.yaml.

This will assist in testing new gates as currently after a job has
finished if no report is sent back to gerrit then only the workers
logs can be consulted to see if it was successful. This will allow
developers to see exactly what zuul will return if they turn on
gerrit reporting.

Change-Id: I47ac038bbdffb0a0c75f8e63ff6978fd4b4d0a52
2013-09-02 09:55:49 +10:00

26 lines
476 B
YAML

pipelines:
- name: check
manager: IndependentPipelineManager
trigger:
gerrit:
- event: patchset-created
start:
smtp:
to: you@example.com
success:
gerrit:
verified: 1
smtp:
to: alternative_me@example.com
from: zuul_from@example.com
failure:
gerrit:
verified: -1
projects:
- name: org/project
check:
- project-merge:
- project-test1
- project-test2