Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-69021

Error sending array to influx

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • influxdb-plugin
    • None
    • Jenkins version: 2.346.1
      InfluxDB Version: 3.3
      Windows Server 2016
      InfluxDB: 2.?

      Hello,

      I am trying to push some customData to influxdb and everything works fine until I try to use an array in my data. To investigate the problem I wrote an small pipeline example with the following code: see attachement PipelineExample.txt

      If I try to push the data to influx I get the response:

      [InfluxDB Plugin] Collecting data...

      http://---/Pipeline-Test/detail/Pipeline-Test/84/pipeline/#step-39-log-2[InfluxDB Plugin] Custom data map found. Writing to InfluxDB...

      http://---/Pipeline-Test/detail/Pipeline-Test/84/pipeline/#step-39-log-3[InfluxDB Plugin] Failed to collect data. Ignoring Exception:java.lang.ClassCastException: class java.util.ArrayList cannot be cast to class java.util.Map (java.util.ArrayList and java.util.Map are in module java.base of loader 'bootstrap')

      http://---/Pipeline-Test/detail/Pipeline-Test/84/pipeline/#step-39-log-4[InfluxDB Plugin] Publishing data to target 'InfluxDB' (url='', database='testbucket')

      http://---/Pipeline-Test/detail/Pipeline-Test/84/pipeline/#step-39-log-5[InfluxDB Plugin] Completed.

      I seems so that your plugin has a problem to push array data to influx. Why? Is it forbidden? How can I solve my problem?

            aleksisimell Aleksi Simell
            ckak07 Christoph Hero
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: