Record build_branch in logstash

Since some bugs are branch specific we want to write logstash queries
that use the branch, so log ZUUL_BRANCH as build_branch in logstash.

From zuul's launchers doc:
ZUUL_BRANCH: The target branch for the change that triggered this build

Change-Id: Ic408afb235be5716231c663616c17a98ef6f8870
This commit is contained in:
Joe Gordon 2014-01-17 10:35:36 -05:00
parent 16e7cd5b0e
commit cab484e84c
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ class EventProcessor(threading.Thread):
fields["build_uuid"] = parameters.get("ZUUL_UUID", "UNKNOWN")
fields["build_queue"] = parameters.get("ZUUL_PIPELINE", "UNKNOWN")
fields["build_ref"] = parameters.get("ZUUL_REF", "UNKNOWN")
fields["build_branch"] = parameters.get("ZUUL_BRANCH", "UNKNOWN")
if parameters.get("ZUUL_CHANGE"):
fields["build_change"] = parameters.get("ZUUL_CHANGE", "UNKNOWN")
fields["build_patchset"] = parameters.get("ZUUL_PATCHSET",