[JIRA] (JENKINS-37879) Jenkins NUnit plugin 0.18 gives an error while reading nunit result xml file

14 views
Skip to first unread message

vijaynag@gmail.com (JIRA)

unread,
Aug 31, 2016, 11:33:07 PM8/31/16
to jenkinsc...@googlegroups.com
vijay nag created an issue
 
Jenkins / Bug JENKINS-37879
Jenkins NUnit plugin 0.18 gives an error while reading nunit result xml file
Issue Type: Bug Bug
Assignee: Bruno P. Kinoshita
Components: nunit-plugin
Created: 2016/Sep/01 3:32 AM
Environment: Windows
Priority: Major Major
Reporter: vijay nag

When the Nunit plugin tries to read the test result xml file, it gives the below error.

Results (nunit3) saved as TestResult.xml
Recording NUnit tests results
ERROR: Step ‘Publish NUnit test result report’ aborted due to exception:
java.io.IOException: Could not transform the NUnit report. Please report this issue to the plugin author
at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:71)
at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:29)
at hudson.FilePath.act(FilePath.java:1018)
at hudson.FilePath.act(FilePath.java:996)
at hudson.plugins.nunit.NUnitPublisher.perform(NUnitPublisher.java:153)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
at hudson.model.Run.execute(Run.java:1766)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Users/2554/.jenkins/workspace/TestProject/temporary-junit-reports/temp-junit.xml; lineNumber: 2; columnNumber: 3; Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at hudson.plugins.nunit.NUnitReportTransformer.splitJUnitFile(NUnitReportTransformer.java:102)
at hudson.plugins.nunit.NUnitReportTransformer.transform(NUnitReportTransformer.java:72)
at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:66)
... 13 more
Finished: FAILURE

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

brunodepaulak@yahoo.com.br (JIRA)

unread,
Aug 31, 2016, 11:36:01 PM8/31/16
to jenkinsc...@googlegroups.com
Bruno P. Kinoshita commented on Bug JENKINS-37879
 
Re: Jenkins NUnit plugin 0.18 gives an error while reading nunit result xml file

It seems to complain about the report contents. Could you attach an example, so that I can try to reproduce it, please?

vijaynag@gmail.com (JIRA)

unread,
Aug 31, 2016, 11:37:01 PM8/31/16
to jenkinsc...@googlegroups.com

vijaynag@gmail.com (JIRA)

unread,
Aug 31, 2016, 11:37:01 PM8/31/16
to jenkinsc...@googlegroups.com

brunodepaulak@yahoo.com.br (JIRA)

unread,
Aug 31, 2016, 11:39:01 PM8/31/16
to jenkinsc...@googlegroups.com

slide.o.mix@gmail.com (JIRA)

unread,
Feb 16, 2017, 3:56:04 PM2/16/17
to jenkinsc...@googlegroups.com

Looks like the test result is from nunit3, which I don't think is currently supported right now (I could be wrong)

slide.o.mix@gmail.com (JIRA)

unread,
Feb 16, 2017, 7:40:05 PM2/16/17
to jenkinsc...@googlegroups.com

slide.o.mix@gmail.com (JIRA)

unread,
Feb 16, 2017, 7:40:06 PM2/16/17
to jenkinsc...@googlegroups.com
Alex Earl closed an issue as Duplicate
Change By: Alex Earl
Status: Open Closed
Resolution: Duplicate
Reply all
Reply to author
Forward
0 new messages