Add role information to task in zuul_json callback

In comparison to other callback plugins like the default (stdout)
plugin, the role information for an executed task is missing in the
json output. To be complient to the provided task output containing
the name and uuid field, we've defined a similar data structure
containing the role information. This will only be added to the result
set if the task contained the necessary role information.

Change-Id: I8d94ba077e0bc90b5cf6510804bbd57c38184a9d
This commit is contained in:
Benedikt Loeffler
2018-04-10 13:51:17 +02:00
parent 1e3e5d33fb
commit 2dd4c5274b
5 changed files with 32 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
---
features:
- |
Add role name to json log
The json log contains now also the role name and the uuid
similar to the task entry.