[JIRA] (JENKINS-57944) project_name tag set incorrectly
Title: Message Title Aleksi Simell updated JENKINS-57944 Jenkins / JENKINS-57944 project_name tag set incorrectly Change By: Aleksi Simell Status: Fixed but Unreleased Closed Released As: 1.23 Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199920.1560202753000.7713.1564982880373%40Atlassian.JIRA.
[JIRA] (JENKINS-57944) project_name tag set incorrectly
Title: Message Title Aleksi Simell updated JENKINS-57944 Fix implemented. Will be available in the next release. Jenkins / JENKINS-57944 project_name tag set incorrectly Change By: Aleksi Simell Status: Open Fixed but Unreleased Resolution: Fixed Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199920.1560202753000.10410.1561624740185%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57944) project_name tag set incorrectly
Title: Message Title Mandy Prescott-Courville created an issue Jenkins / JENKINS-57944 project_name tag set incorrectly Issue Type: Bug Assignee: Aleksi Simell Components: influxdb-plugin Created: 2019-06-10 21:39 Environment: Operating System: Windows 7 Oracle JRE - 1.8.0_201 Jenkins - 2.164.2 InfluxDB plugin - 1.17 Chrome web browser Priority: Minor Reporter: Mandy Prescott-Courville 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(); }