[ https://issues.jenkins-ci.org/browse/JENKINS-13668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Werner updated JENKINS-13668: ---------------------------------- Component/s: klocwork (was: klockwork) > Klocwork Plugin Fails if no KW Issues > ------------------------------------- > > Key: JENKINS-13668 > URL: https://issues.jenkins-ci.org/browse/JENKINS-13668 > Project: Jenkins > Issue Type: Bug > Components: klocwork > Affects Versions: current > Environment: Jenkins 1.461 > Klocwork Plugin 1.7 > Reporter: John Werner > Assignee: gbois > Priority: Blocker > Attachments: klockwork_result.xml > > > 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) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira