Gerrit Trigger Plugin Listener allows to subscribe on each build started / validation completed event.
If listener received change related event (i.e. PatchsetCreated) foronCompleted
(this event is triggered in the moment when Gerrit Trigger Plugin pushes the vote to the change) it will push to FluentD this data:
Field name | Example |
---|---|
result | ABORTED |
event_type | patchset-created |
command_size | 33 |
owner_name | name |
owner_email | |
change_id | change |
project | project_name |
topic | topic_name |
branch | branch_name |
patchset_number | number |
patchset_kind | TRIVIAL_REBASE |
change_created_on | 1507274800000 |
patchset_created_on | 1507274900000 |
event_created_on | 1507275000000 |
onStarted
(this event is triggered in the moment when Gerrit Trigger Plugin sends information that builds started) it will push the same data except result field.
In case of not a change related changes (i.e. RefUpdated) only command
and result
will be sent.
But it should never happen according the current implementation of GerritTriggerPlugin
onStarted
is pushed with tag gerrit_trigger_plugin.on_started
. The onCompleted
goes to gerrit_trigger_plugin.on_completed
.