Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21481

BZ 61464 - Coverity plugin 1.3.0 crashes job with CSA/CC 6.5.1, bad parsing of VERSION

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • coverity-plugin
    • None
    • Windows 7 64-bit, Java 1.7.0_25-b17, Jenkins 1.548, Coverity Static Analysis and Coverity Connect 6.5.1, Coverity Plugin 1.3.0.

      The Coverity plugin is attempting to read Coverity version information from the [Coverity Home]\VERSION file. In CheckConfig.java's getCoverityVersion method, it is looking for a line in VERSION that begins with "externalVersion=".

      At least as of Coverity Static Analysis 6.5.1, the VERSION file does not contain any line that begins with "externalVersion=". Therefore getCoverityVersion returns null, which eventually results in the following crash when a job containing a Coverity post-build action is instantiated:

      Started by user anonymous

      Checking Coverity configuration...
      FATAL: null
      java.lang.NullPointerException
      at jenkins.plugins.coverity.CoverityVersion.compareTo(CoverityVersion.java:112)
      at jenkins.plugins.coverity.CheckConfig.check(CheckConfig.java:108)
      at jenkins.plugins.coverity.CoverityRunListener.setUpEnvironment(CoverityRunListener.java:52)
      at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:617)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:542)
      at hudson.model.Run.execute(Run.java:1670)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:231)

            Unassigned Unassigned
            jck2 J K
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: