• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • influxdb-plugin
    • None
    • 1.20.4

      We receive NPEs originating from the SonarQubePointGenerator lately:

      java.lang.NullPointerException
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.getSonarProjectName(SonarQubePointGenerator.java:186)
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.setSonarDetails(SonarQubePointGenerator.java:77)
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.hasReport(SonarQubePointGenerator.java:65)
       at jenkinsci.plugins.influxdb.InfluxDbPublicationService.perform(InfluxDbPublicationService.java:234)
       at jenkinsci.plugins.influxdb.InfluxDbPublisher.perform(InfluxDbPublisher.java:357)

      and

      java.lang.NullPointerException
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.getSonarProjectName(SonarQubePointGenerator.java:187)
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.setSonarDetails(SonarQubePointGenerator.java:78)
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.hasReport(SonarQubePointGenerator.java:66)
       at jenkinsci.plugins.influxdb.InfluxDbPublicationService.perform(InfluxDbPublicationService.java:234)
       at jenkinsci.plugins.influxdb.InfluxDbPublisher.perform(InfluxDbPublisher.java:357)

      Looks like the issue is coming from this line: https://github.com/jenkinsci/influxdb-plugin/blob/3af3be64df162c190374759e7947471432e7a8b5/src/main/java/jenkinsci/plugins/influxdb/generators/SonarQubePointGenerator.java#L186

       

      Error is occurring with v1.20.2 and v1.20.3.

       

          [JENKINS-56038] NPE in SonarQubePointGenerator

          Ok, we're still on Version 6.7.5 (build 38563)..

          Christopher Fenner added a comment - Ok, we're still on Version 6.7.5 (build 38563)..

          Aleksi Simell added a comment -

          I can try to re-add the support for lower SonarQube installations, once I find the appropriate time.

          Aleksi Simell added a comment - I can try to re-add the support for lower SonarQube installations, once I find the appropriate time.

          Christopher Fenner added a comment - - edited

          Thanks! That would be great if it's not that much effort!

          Christopher Fenner added a comment - - edited Thanks! That would be great if it's not that much effort!

          I have the same issue with both the versions v1.20.2 and v1.20.3. Let me know when we can get an update with the support.

          Do we have a version which already has the support?

          Ashwin Yaprala added a comment - I have the same issue with both the versions v1.20.2 and v1.20.3. Let me know when we can get an update with the support. Do we have a version which already has the support?

          Aleksi Simell added a comment -

          yashwinkumar Any version before 1.20.2 as mentioned in the release notes of the wiki page.

          Aleksi Simell added a comment - yashwinkumar Any version before 1.20.2 as mentioned in the release notes of the wiki page .

          I will check with 1.20.1 and 1.20 versions. I will let you know if that fixed my issue. Thank you aleksisimell

          Ashwin Yaprala added a comment - I will check with 1.20.1 and 1.20 versions. I will let you know if that fixed my issue. Thank you aleksisimell . 

          I would vote for keeping the support for SonarQube LTS which is currently 6.7.x.

          Christopher Fenner added a comment - I would vote for keeping the support for SonarQube LTS which is currently 6.7.x.

          Ashwin Yaprala added a comment - - edited

          After downgrading the version to 1.20 it worked.

          Ashwin Yaprala added a comment - - edited After downgrading the version to 1.20 it worked.

          Aleksi Simell added a comment -

          ennef Yes, I'm re-adding that. Already fixed this issue, but still need to test with a lower level SonarQube.

          Aleksi Simell added a comment - ennef Yes, I'm re-adding that. Already fixed this issue, but still need to test with a lower level SonarQube.

          Aleksi Simell added a comment - - edited

          Support for older SonarQube versions added again. Release is also already made. I will update the status once it's available in update-center.

          Aleksi Simell added a comment - - edited Support for older SonarQube versions added again. Release is also already made. I will update the status once it's available in update-center.

            aleksisimell Aleksi Simell
            ennef Christopher Fenner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: