kmmbvnr/django-jenkins — Issue #61: jenkins can't parse jslint output xml
Author: ricardoduarte
Created: 2012-01-30 11:15:49+00:00
State: open

Hi,

I configured django-jenkins and Jenkins to use jslint support but it always give me the following error:

ERROR: Publisher hudson.plugins.violations.ViolationsPublisher aborted due to exception
hudson.util.IOException2: Cannot parse s3p/reports/jslint.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.act(FilePath.java:784)
at hudson.FilePath.act(FilePath.java:766)
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:697)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:672)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:650)
at hudson.model.Build$RunnerImpl.post2(Build.java:162)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:619)
at hudson.model.Run.run(Run.java:1429)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:238)
Caused by: org.xmlpull.v1.XmlPullParserException: entity reference names can not start with character '&' (position: TEXT seen ...=\' and instead saw \'!=\'." evidence="\t\t\tif(p.recreateForm===true &&... @38:114)
at org.xmlpull.mxp1.MXParser.parseEntityRef(MXParser.java:2212)
at org.xmlpull.mxp1.MXParser.parseAttribute(MXParser.java:2047)
at org.xmlpull.mxp1.MXParser.parseStartTag(MXParser.java:1799)
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1127)
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
at hudson.plugins.violations.parse.AbstractParser.skipToTag(AbstractParser.java:189)
at hudson.plugins.violations.types.jslint.JsLintParser.parseFileElement(JsLintParser.java:42)
at hudson.plugins.violations.types.jslint.JsLintParser.execute(JsLintParser.java:30)
at hudson.plugins.violations.parse.AbstractTypeParser.parse(AbstractTypeParser.java:57)
... 16 more
Finished: FAILURE