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

Publishing customDataMap to influxdb fails after update from 1.14 to 1.15

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • influxdb-plugin
    • None
    • Jenkins version 2.107.3
      Influxdb-plugin version 1.15

      I use influxdb-plugin in some jobs to publish custom data maps to an influxdb database.

      With version 1.14, I used to do :

      step([$class: 'InfluxDbPublisher', target: 'influx',
            customDataMap: [
                myMeasurement: [ 
                  status: myStatus
                ]
            ]
      ])

       

      But after upgrading to 1.15, this doesn't work anymore. I get the following logs in my console output:

      [InfluxDB Plugin] Publishing data to: [url=******, description=influx, username=******, password=*****, database=myDb]
      [InfluxDB Plugin] Custom data map found. Writing to InfluxDB...
      [InfluxDB Plugin] Failed to collect data. Ignoring Exception:java.lang.NullPointerException
      [InfluxDB Plugin] Completed.

       

      I need to explicitly pass an empty customDataMapTags in order to make it work :

      step([$class: 'InfluxDbPublisher', target: 'influx',
            customDataMap: [
                myMeasurement: [ 
                  status: myStatus
                ]
            ],
            customDataMapTags: [:]
      ])

            aleksisimell Aleksi Simell
            i351654 Tom Marcuzzi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: