-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: influxdb-plugin
-
None
-
Environment:Operating System: Windows 7
Oracle JRE - 1.8.0_201
Jenkins - 2.164.2
InfluxDB plugin - 1.17
Chrome web browser
-
1.23
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();Â Â Â Â }Â