-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major
-
Component/s: influxdb-plugin
-
None
Only one JUnit point is generated and sent to InfluxDB, even if there are more tests in the report.
Steps to reproduce
- Run a simple Jenkins Pipeline (either with global listener enabled or not)
- Publish an example JUnit report containing more than one test result, e.g. this one
- If global listener is not active: Run the InfluxDB publish action
- Query all (new) results from the junit_data table (optionally add more filters, e.g. project_namespace, timerange, ...)
- InfluxDB v3 SQL:
SELECT * FROM junit_data
- InfluxDB v3 SQL:
-
- InfluxDB v2 Flux:
from(bucket: "jenkins") |> range(start: v.timeRangeStart, stop: v.timeRangeStop) |> filter(fn: (r) => r["_measurement"] == "junit_data") |> pivot(rowKey: ["_time"], columnKey: ["_field"], valueColumn: "_value")
- InfluxDB v2 Flux:
Expected behavior
- InfluxDB has 8 new datapoints in the junit_data table
Actual behavior
- Only 1 new datapoint is added to InfluxDB
- The reported point only contains 1 test (the last in the example report)
Â

