Zuul can communicate results and progress back to configurable protocols. For example, after succeeding in a build a pipeline can be configured to post a positive review back to Gerrit.
There are three stages when a report can be handled. That is on: Start, Success or Failure. Each stage can have multiple reports. For example, you can set verified on Gerrit and send an email.
Zuul works with standard versions of Gerrit by invoking the
gerrit command over an SSH connection. It reports back to Gerrit using SSH.
The dictionary passed to the Gerrit reporter is used for
gerrit review arguments, with the boolean value of
true simply indicating that the argument should be present without following it with a value. For example,
verified: 1 becomes
gerrit review --verified 1 and
submit: true becomes
gerrit review --submit.
The configuration for posting back to Gerrit is shared with the Gerrit trigger in zuul.conf as described in
A simple email reporter is also available.
zuul.conf contains the SMTP server and default to/from as describe in
Each pipeline can overwrite the to or from address by providing alternatives as arguments to the reporter. For example, :
pipelines: - name: post-merge manager: IndependentPipelineManager trigger: - event: change-merged success: smtp: to: email@example.com failure: smtp: to: firstname.lastname@example.org from: email@example.com