Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: influxdb-plugin
    • Labels:
      None
    • Environment:
      Operating System: Windows 7
      Oracle JRE - 1.8.0_201
      Jenkins - 2.164.2
      InfluxDB plugin - 1.17
      Chrome web browser
    • Similar Issues:
    • Released As:
      1.23

      Description

      Since upgrading from InfluxDB plugin version 1.14 to 1.17 the jenkins_data measurement is now prefixing the project_name tag with an underscore.  From a quick look at the source code it appears that when the "replaceDashWithUnderscore" parameter is false (which is the default) then the code assumes you must have a custom prefix and prepends the project_name tag with customPrefix + "_".  If your Jenkins job doesn't have a custom prefix you end up with an underscore prefixed to the project name.  Looks like the code needs to be changed to something like:

       

      String projectTagName;

      if (this.replaceDashWithUnderscore)

      {             projectTagName = renderedProjectName;        }

      else if (customPrefix != null)

      {             projectTagName = customPrefix + "_" + build.getParent().getName();        }

      else

      {         projectTagName = build.getParent().getName();        }

       

        Attachments

          Activity

          Hide
          aleksisimell Aleksi Simell added a comment -

          Fix implemented. Will be available in the next release.

          Show
          aleksisimell Aleksi Simell added a comment - Fix implemented. Will be available in the next release.

            People

            • Assignee:
              aleksisimell Aleksi Simell
              Reporter:
              mandyjprescott Mandy Prescott-Courville
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: