我正在开发一个具有codenarc插件的 grails 应用程序。而且我正在使用哈德森构建工具。我正在将应用程序与hudson构建工具集成。在哈德逊我已经配置了违规插件。但是当我构建应用程序时,我遇到了以下错误。
hudson.util.IOException2: Cannot parse CodeNarcReport.xml
at hudson.plugins.violations.parse.AbstractTypeParser.parse(AbstractTypeParser.java:64)
at hudson.plugins.violations.ViolationsCollector.doType(ViolationsCollector.java:189)
at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:116)
at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27)
at hudson.FilePath.act(FilePath.java:757)
at hudson.FilePath.act(FilePath.java:739)
at hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:74)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:622)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:601)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:579)
at hudson.model.Build$RunnerImpl.post2(Build.java:156)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:548)
at hudson.model.Run.run(Run.java:1386)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)
Caused by: java.lang.NullPointerException
at hudson.plugins.violations.model.Violation.compareTo(Violation.java:192)
at hudson.plugins.violations.model.Violation.compareTo(Violation.java:8)
at java.util.TreeMap.put(Unknown Source)
at java.util.TreeSet.add(Unknown Source)
at hudson.plugins.violations.model.FullFileModel.addViolation(FullFileModel.java:24)
at hudson.plugins.violations.types.codenarc.CodenarcParser.parseFileElement(CodenarcParser.java:90)
at hudson.plugins.violations.types.codenarc.CodenarcParser.execute(CodenarcParser.java:47)
at hudson.plugins.violations.parse.AbstractTypeParser.parse(AbstractTypeParser.java:59)
... 16 more
谁能帮我解决这个问题?
Grails 版本:1.3.7
哈德逊版本:1.398