Add jenkins slave name to the logstash records

zmq publisher already has the computer/node name information
per commit:
openstack-infra/zmq-event-publisher 36ca349

we just need to pull it out of the event and pass it along as
a new field

Change-Id: Iddefdf74ddf170eaafcd82c5e1f5b0389651cf89
This commit is contained in:
Davanum Srinivas 2014-01-08 20:47:10 -05:00
parent fda8d86ad2
commit 3079a44e6a

View File

@ -85,6 +85,7 @@ class EventProcessor(threading.Thread):
fields["filename"] = filename
fields["build_name"] = event.get("name", "UNKNOWN")
fields["build_status"] = event["build"].get("status", "UNKNOWN")
fields["build_node"] = event["build"].get("node_name", "UNKNOWN")
parameters = event["build"].get("parameters", {})
fields["project"] = parameters.get("ZUUL_PROJECT", "UNKNOWN")
fields["build_uuid"] = parameters.get("ZUUL_UUID", "UNKNOWN")