Title: Message Title
Ryan Gates created an issue
Jenkins / JENKINS-51056
Jenkins XUnit Plugin version 1.103 fails without threshold specified
Issue Type:
Bug
Assignee:
Andrew Bayer
Components:
xunit-plugin
Created:
2018-05-01 17:31
Priority:
Minor
Reporter:
Ryan Gates
After upgrading the xunit plugin from version 1.102 to 1.103, my build started failing at the following line in the jenkinsfile/pipeline.
step([$class: 'XUnitBuilder', tools: [[$class: 'XUnitDotNetTestType', pattern: '*results.xml']]])
It throws the following exception.
java.lang.NullPointerException
at org.jenkinsci.plugins.xunit.XUnitBuilder.(XUnitBuilder.java:65)
at org.jenkinsci.plugins.xunit.XUnitBuilder.(XUnitBuilder.java:71)
Caused: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:282)
Caused: java.lang.IllegalArgumentException: Could not instantiate {tools=[{$class=XUnitDotNetTestType}]} for XUnitBuilder(tools: TestType{AUnitJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) |