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

          jwernerny John Werner created issue -
          jwernerny John Werner made changes -
          Field Original Value New Value
          Component/s klocwork [ 15906 ]
          Component/s klockwork [ 15901 ]
          cdo cedric dourlent made changes -
          Assignee Gregory Boissinot [ gbois ] cedric dourlent [ cdo ]
          cdo cedric dourlent made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          gbois Gregory Boissinot made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 144135 ] JNJira + In-Review [ 190923 ]

            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: