Merge "Add jenkins slave name to the logstash records"

This commit is contained in:
Jenkins 2014-01-13 14:35:32 +00:00 committed by Gerrit Code Review
commit b2379b43c8

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")