[JIRA] (JENKINS-58222) xunit 2.3.4 fails to read xunit 1.102 configs

0 views
Skip to first unread message

darrelvun@gmail.com (JIRA)

unread,
Jun 26, 2019, 3:47:02 PM6/26/19
to jenkinsc...@googlegroups.com
Darrel Vuncannon created an issue
 
Jenkins / Bug JENKINS-58222
xunit 2.3.4 fails to read xunit 1.102 configs
Issue Type: Bug Bug
Assignee: Nikolas Falco
Components: xunit-plugin
Created: 2019-06-26 19:46
Priority: Major Major
Reporter: Darrel Vuncannon

Somewhere between versions 1.102 and 2.3.4 xunit introduced a not-backward-compatible change to reading its config.

Steps to reproduce:

  • Install xunit 1.102.
  • Add xunit to a job config, including a tool (such a GoogleTest).
  • Upgrade to xunit 2.3.4.
  • Run the job.

Expected Result

Job succeeds.

Actual Result

Job fails with:

ERROR: Build step failed with exception
java.lang.IllegalArgumentException: The tools section is required.
	at org.jenkinsci.plugins.xunit.XUnitProcessor.<init>(XUnitProcessor.java:141)
	at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:170)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
	at hudson.model.Build$BuildExecution.post2(Build.java:186)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
	at hudson.model.Run.execute(Run.java:1835)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:429)
Build step 'Publish xUnit test result report' marked build as failure
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

nfalco79@hotmail.com (JIRA)

unread,
Jun 26, 2019, 5:03:03 PM6/26/19
to jenkinsc...@googlegroups.com
Nikolas Falco commented on Bug JENKINS-58222
 
Re: xunit 2.3.4 fails to read xunit 1.102 configs

Yes, version 2.x is not compatible with 1.x. I had mark in the pom.xml 2.0.3 but maybe after refactoring I delete setting in 2.3.5 version for mistake. I will re add in 2.3.6.

nfalco79@hotmail.com (JIRA)

unread,
Jun 26, 2019, 10:18:02 PM6/26/19
to jenkinsc...@googlegroups.com
Nikolas Falco started work on Bug JENKINS-58222
 
Change By: Nikolas Falco
Status: Open In Progress

nfalco79@hotmail.com (JIRA)

unread,
Jun 26, 2019, 10:18:03 PM6/26/19
to jenkinsc...@googlegroups.com
Change By: Nikolas Falco
Status: In Progress Fixed but Unreleased
Resolution: Fixed

paul.vittorino@garmin.com (JIRA)

unread,
Jun 28, 2019, 9:42:02 AM6/28/19
to jenkinsc...@googlegroups.com
Paul Vittorino commented on Bug JENKINS-58222
 
Re: xunit 2.3.4 fails to read xunit 1.102 configs

Is there any way to upgrade jobs from 1.x to 2.x? Using an XSLT?

nfalco79@hotmail.com (JIRA)

unread,
Jun 28, 2019, 10:07:11 AM6/28/19
to jenkinsc...@googlegroups.com

Do you mean tranform the config.xml of a job 1.x to a job 2.x using an XSLT? If you mean that than yes why not. You should create your XSLT, stop jenkins, write a script to collect all jenkins job config.xml and perform the XLST transformation using some tools.

All this procedure is unsupported.

Reply all
Reply to author
Forward
0 new messages