Only publish stream events when sendStreamEvents is set.

The publishing of stream events is only enabled when the
"sendStreamEvents' configuration is set as follows:

[plugin "events-gcloud-pubsub"]
   sendStreamEvents=true

Note that this constitutes a breaking change compared to the previous
stable version (stable-3.4), in which stream events were published by
default.

This is because multi-site now already publishes stream events
[see Iafe5a8155] by binding directly the StreamEventsPublisher from the
events-broker library. Thus direct publishing from events-gcloud-pubsub
would be redundant and cause twice as many messages to be published.

Bug: Issue 14910
Change-Id: I8569d093405457654cda21a8acb8c0dff36646f2
4 files changed
tree: c82c72837a93dbb14e61af0e1ffb290266d99e0a
  1. src/
  2. BUILD
  3. external_plugin_deps.bzl
  4. Jenkinsfile
  5. LICENSE
  6. README.md
README.md

events-gcloud-pubsub

Gerrit event producer and consumer for GCloud PubSub

Build

Information on how to build this plugin can be found here

Configuration

Information on how to configure this plugin can be found here