@@ -38,7 +38,6 @@ An example json file looks like this:
3838```
3939{
4040 "id": "my-json-report"
41- "name": "My JSON report"
4241 "items": [
4342 {
4443 "id": "stocks",
@@ -106,12 +105,11 @@ To check your json you can use the [json schema](src/main/resources/report.json)
106105
107106> ⚠️ ** Color Mapping** :
108107>
109- > You can provide a color mapping. Then, please make sure, that the attribute `colors needs exactly the same
108+ > You can provide a color mapping. Then, please make sure, that the attribute ` colors ` needs exactly the same
110109> attributes as the result of the items and assigns a color to each attribute, which is used for the graphical representation.
111110> Otherwise a default color ` #E9E9E9 ` is used for the missing property!
112- >
113- > If no ` colors ` object is provided,
114- > a color palette will be calculated. You can use own HEX values or the following predefined colors are supported:
111+ >
112+ > You can use own HEX values or the following predefined colors are supported:
115113> * YELLOW
116114> * LIME
117115> * GREEN
@@ -124,6 +122,8 @@ To check your json you can use the [json schema](src/main/resources/report.json)
124122> * BROWN
125123> * GRAY
126124> * WHITE
125+ >
126+ > If no ` colors ` object is provided, a color palette will be calculated.
127127
128128If your items only have one result, the visualization is different from the default one,
129129because the representation then makes no sense. Instead of the attributes of the result object,
@@ -132,7 +132,6 @@ the keys of the individual items are used as the basis for distribution. For exa
132132```
133133{
134134 "id": "my-second-json-report"
135- "name": "My second JSON report"
136135 "items": [
137136 {
138137 "id": "Aktie",
@@ -221,8 +220,6 @@ Then your dashboard looks like this:
221220* XML
222221* CSV
223222
224- For examples of report files, please have look into [ etc] ( /etc ) folder.
225-
226223### Visualization
227224
228225At job level, a trend chart is generated showing the development
@@ -242,21 +239,37 @@ available in the json model. On the lowest level only the pie chart and the hist
242239
243240### Pipeline Step
244241
242+ For examples of report files and pipelines, please have look into [ etc] ( /etc ) folder.
243+
245244```
246- publishReport pattern: "**/result-*.json", displayType: "absolute"
245+ publishReport name: "JSON Report", displayType: "dual", provider: json(pattern: "etc/report-1-part-*.json")
246+ publishReport name: "XML Report", displayType: "dual", provider: xml(pattern: "etc/*.xml")
247+ publishReport name: "YAML Report", displayType: "dual", provider: yaml(pattern: "etc/*.yaml")
248+ publishReport name: "CSV Report", displayType: "dual", provider: csv(id: "csv-one", pattern: "etc/*.csv")
247249```
248250
249251### Parameter:
250252
251- ##### pattern:
253+ #### name:
254+ Choose a name for the report. The name is shown in the UI.
252255
253- This is an ant include pattern for the files should be parsed and scanned (see Patterns in the Apache Ant Manual).
254- Multiple includes can be specified by separating each pattern with a comma.
255- At the moment only yaml/yml or json files are supported.
256+ #### displayType (optional, default = ` absolute ` ):
257+ This can be used to change the display of the displayed metrics within the distribution table.
258+ 'absolute' shows the absolute values from the underlying files. 'relative', shows percentage values
259+ and 'dual' shows the absolute value and additionally the relative frequency within the category.
260+
261+ #### provider:
262+ Choose a provider that should find and parse the files based on the given pattern.
263+ If all files found have the same ID and can be structurally merged, they are merged into one report.
264+ The id of the first report file found will be used as master id. All following reports of the pattern must match it, otherwise
265+ they are ignored.
256266
257- ##### displayType (optional, default = ` absolute ` ):
258- This can be used to determine the representation of the values within the table.
259- Choose between ` absolute ` , ` relative ` or ` dual ` .
267+ ##### id (only required for CSV provider):
268+ Specify the id of the report to tag the result and to find reports of past builds. Just required for CSV provider.
269+
270+ ##### pattern:
271+ This is an ant include pattern for the files should be parsed and scanned (see Patterns in the Apache Ant Manual).
272+ Multiple includes can be specified by separating each pattern with a comma.
260273
261274## Issues
262275
0 commit comments