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

Klocwork Plugin Fails if no KW Issues

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: klocwork-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.461
      Klocwork Plugin 1.7
    • Similar Issues:

      Description

      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)

        Attachments

          Activity

          There are no comments yet on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: