I see that xunit compatibility is supported by pipeline
from:
https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md#build-steps-and-post-build-actions
But when I try to add the step with:
node('remote') {
step([$class: 'XUnitPublisher',
types: [
[NUnitJunitHudsonTestType : [pattern: '**/test.xml', skipNoTestFiles:
'false', failIfNotNew: 'true',deleteOutputFiles: 'true',
stopProcessingIfError: true]]
],
thresholds: [
[$class: 'FailedThreshold', unstableThreshold: '20']
]
])
}
I get:
java.lang.NullPointerException: The types section is required.
at
org.jenkinsci.plugins.xunit.XUnitProcessor.<init>(XUnitProcessor.java:67)
at
org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:141)
at
org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:68)
at
org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:59)
at
org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49)
at hudson.security.ACL.impersonate(ACL.java:213)
at
org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47)
at java.util.concurrent.Executors$RunnableAdapter.call(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 java.lang.Thread.run(Unknown Source)
Where I'm wrong here?
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/17a812c5-d2f9-4779-abbb-c996cc8c8891%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.