-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: influxdb-plugin
-
Labels:None
-
Environment:Jenkins version 2.107.3
Influxdb-plugin version 1.15
-
Similar Issues:
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: [:] ])
Field | Original Value | New Value |
---|---|---|
Description |
I use influxdb-plugin in some jobs to publish custom data maps to an influxdb database.
With version 1.14, I used to do : {code:java} step([$class: 'InfluxDbPublisher', target: 'influx', customDataMap: [ myMeasurement: [ status: myStatus ] ] ]){code} 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 : {code:java} step([$class: 'InfluxDbPublisher', target: 'influx', customDataMap: [ myMeasurement: [ status: myStatus ] ], customDataMapTags: [:] ]){code} |
I use influxdb-plugin in some jobs to publish custom data maps to an influxdb database.
With version 1.14, I used to do : {code:java} step([$class: 'InfluxDbPublisher', target: 'influx', customDataMap: [ myMeasurement: [ status: myStatus ] ] ]){code} But after upgrading to 1.15, this doesn't work anymore. I get the following logs in my console output: {code:java} [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.{code} I need to explicitly pass an empty customDataMapTags in order to make it work : {code:java} step([$class: 'InfluxDbPublisher', target: 'influx', customDataMap: [ myMeasurement: [ status: myStatus ] ], customDataMapTags: [:] ]){code} |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Open [ 1 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Resolution | Fixed [ 1 ] |
Added a check to see if customdatamaps are null.