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:
parent
a8119e278d
commit
b330bb1f55
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user