Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65162

JobDSL: xunit 3.x compatibility

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Since we upgraded from xunit 2.4.0 to 3.0 we get this error.

      08:38:52 ERROR: Build step failed with exception
      08:38:52 java.lang.IllegalArgumentException: The tools section is required.
      08:38:52 	at org.jenkinsci.plugins.xunit.XUnitProcessor.<init>(XUnitProcessor.java:139)
      08:38:52 	at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:204)
      08:38:52 	at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
      08:38:52 	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80)
      08:38:52 	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      08:38:52 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:803)
      08:38:52 	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:752)
      08:38:52 	at hudson.model.Build$BuildExecution.post2(Build.java:177)
      08:38:52 	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:697)
      08:38:52 	at hudson.model.Run.execute(Run.java:1932)
      08:38:52 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      08:38:52 	at hudson.model.ResourceController.execute(ResourceController.java:97)
      08:38:52 	at hudson.model.Executor.run(Executor.java:429)
      08:38:52 Build step 'Publish xUnit test result report' marked build as failure
      

      Looks like "types" must be renamed to "tools" in config.xml.

      https://github.com/jenkinsci/job-dsl-plugin/blob/master/job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/PublisherContext.groovy#L150

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            daspilker Daniel Spilker
            Reporter:
            misery A. Klitzing
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: