|author||Luca Milanesio <firstname.lastname@example.org>||Tue Jun 21 11:42:33 2016 +0100|
|committer||Luca Milanesio <email@example.com>||Tue Jun 21 11:50:53 2016 +0100|
Inject Gson serializer with Supplier<T> management Gerrit master uses a Supplier<T> pattern to get hold of the event's data and we need to use the same mechanism to serialize it to RabbitMQ stream events. Without this change, the RabbitMQ stream events are broken as they would only receive blank fields, which is the result of default serialization of Supplier<T> Change-Id: I4efa51c0d6cd06523882e631d3e717b6c1d858ee
This is Gerrit plugin.
This can publish gerrit events to message queue provided by RabbitMQ. Published events are the same as Gerrit stream evnets.
This plugin works on Gerrit 2.8 - 2.10.
Clone or link this plugin to the plugins directory of Gerrit's source tree, and issue the command:
buck build plugins/rabbitmq
The output is created in
[amqp] uri = amqp://localhost [exchange] name = exchange-for-gerrit-queue [message] routingKey = com.foobar.www.gerrit [gerrit] name = foobar-gerrit hostname = www.foobar.com
masteris permanently latest but would not be updated by author anymore.
The Apache Software License, Version 2.0
Copyright (c) 2013 rinrinne a.k.a. rin_ne