-
Bug
-
Resolution: Won't Fix
-
Major
-
None
Using gradle 1.6 to generate a codenarc report.
For Groovy classes in the default package, Codenarc creates the xml:
<Package path="" totalFiles="13" filesWithViolations="13" priority1="0" priority2="64" priority3="240">
This results in the following stack trace in the Violations plugin. This stack trace shows "Caused by: org.xmlpull.v1.XmlPullParserException: Expecting attribute path in element Package", so it appears that Violations plugin cannot cope with the empty path attribute. Could you add support for this please?
Recording test results
ERROR: Publisher hudson.plugins.violations.ViolationsPublisher aborted due to exception
hudson.util.IOException2: remote file operation failed: c:\jenkins\workspace\jenkinsJobName at hudson.remoting.Channel@1afc15d:CusmodAAT_WHOS189
at hudson.FilePath.act(FilePath.java:900)
at hudson.FilePath.act(FilePath.java:877)
at hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:74)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:774)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:724)
at hudson.model.Run.execute(Run.java:1600)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:237)
Caused by: hudson.util.IOException2: Cannot parse build\reports\codenarc\test.xml
at hudson.plugins.violations.parse.AbstractTypeParser.parse(AbstractTypeParser.java:62)
at hudson.plugins.violations.ViolationsCollector.doType(ViolationsCollector.java:187)
at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:114)
at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:25)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2387)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at hudson.remoting.Engine$1$1.run(Engine.java:58)
at java.lang.Thread.run(Unknown Source)
Caused by: org.xmlpull.v1.XmlPullParserException: Expecting attribute path in element Package
at hudson.plugins.violations.parse.AbstractParser.checkNotBlank(AbstractParser.java:168)
at hudson.plugins.violations.types.codenarc.CodenarcParser.execute(CodenarcParser.java:43)
at hudson.plugins.violations.parse.AbstractTypeParser.parse(AbstractTypeParser.java:57)
... 14 more