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

Klocwork Plugin Fails if no KW Issues

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • klocwork-plugin
    • None
    • Jenkins 1.461
      Klocwork Plugin 1.7

      The version of the Klocwork Plugin is 1.7

      During publishing of Klocwork results, the Klocwork plugin fails with an exception (java.lang.IndexOutOfBoundsException: Index: 0, Size: 0) if there are no defects to report. This is causing our builds to be marked as failures. For now, we are disabling the reporting of Klocwork issues to solve the problem.

      The KW xml output file (klocwork_result.xml) is attached.

      – Console Output –
      Starting the klocwork analysis.
      Processing 1 files with the pattern 'klocwork_result.xml'.
      Not changing build status, since no threshold has been exceeded
      ERROR: Publisher com.thalesgroup.hudson.plugins.klocwork.KloPublisher aborted due to exception
      java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      at java.util.ArrayList.RangeCheck(Unknown Source)
      at java.util.ArrayList.get(Unknown Source)
      at com.thalesgroup.hudson.plugins.klocwork.KloPublisher.perform(KloPublisher.java:135)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:680)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:658)
      at hudson.model.Build$RunnerImpl.post2(Build.java:162)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:627)
      at hudson.model.Run.run(Run.java:1459)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:239)

            cdo cedric dourlent
            jwernerny John Werner
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: