Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: influxdb-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.107
      Plugin version 1.14
    • Similar Issues:

      Description

      Jenkins logs are full of: 

      Cannot create control version of class org.jenkinsci.plugins.workflow.steps.CoreStep using {delegate=$InfluxDbPublisher(customData=null,customDataMap=null,customPrefix=jenkins_foo,target=[url=http://localhost:8186, description=telegraf, username=, password=*****, database=events])}
      java.lang.ClassCastException: jenkinsci.plugins.influxdb.InfluxDbPublisher.target expects class java.lang.String but received class jenkinsci.plugins.influxdb.models.Target
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:394)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.buildArguments(DescribableModel.java:318)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:259)
      Caused: java.lang.IllegalArgumentException: Could not instantiate {customData=null, customDataMap=null, customPrefix=jenkins_foo, target=[url=http://localhost:8186, description=telegraf, username=, password=*****, database=events]} for InfluxDbPublisher(target: String, customData?: java.lang.UnsupportedOperationException: do not know how to categorize attributes of type java.util.Map<java.lang.String, java.lang.Object>, customDataMap?: java.lang.UnsupportedOperationException: do not know how to categorize attributes of type java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.Object>>, customPrefix?: String)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:264)
      	at org.jenkinsci.plugins.structs.describable.UninstantiatedDescribable.instantiate(UninstantiatedDescribable.java:167)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:372)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.buildArguments(DescribableModel.java:318)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:259)
      

       

      when trying with this config:

      step([$class: 'InfluxDbPublisher',
              customData: null,
              customDataMap: null,
              customPrefix: 'jenkins_foo',
              target: 'telegraf'])
      

        Attachments

        1. Configure_System__Jenkins_.png
          Configure_System__Jenkins_.png
          42 kB
        2. influxdb_log.txt
          75 kB
        3. Update_Center__Jenkins_.png
          Update_Center__Jenkins_.png
          73 kB
        4. Update_Center__Jenkins_.png
          Update_Center__Jenkins_.png
          255 kB
        5. Update_Center__Jenkins_.png
          Update_Center__Jenkins_.png
          255 kB
        6. Update_Center__Jenkins_.png
          Update_Center__Jenkins_.png
          257 kB
        7. Update_Center__Jenkins_.png
          Update_Center__Jenkins_.png
          256 kB

          Issue Links

            Activity

              People

              • Assignee:
                aleksisimell Aleksi Simell
                Reporter:
                deiga Timo Sand
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: