Only one JUnit Result published

XMLWordPrintable

    • 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 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") 

      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)

       

        1. image-2025-10-27-11-29-54-722.png
          79 kB
          Jan-Frederik Schmidt
        2. image-2025-10-27-11-31-16-243.png
          113 kB
          Jan-Frederik Schmidt

            Assignee:
            Aleksi Simell
            Reporter:
            Jan-Frederik Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: