Hi. I'm trying to get to grips with defining a pipeline. I tried adding a step with:
step([$class: 'hudson.plugins.sloccount.SloccountPublisher', pattern: 'sloccount.sc', encoding: 'UTF-8', commentIsCode: false, numBuildsInGraph: 0, ignoreBuildFailure: false]) but it fails with the rather unhelp to me error: java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:193) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:104) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:134) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:113) at groovy.lang.GroovyObject$invokeMethod.call(Unknown Source) Can anyone suggest what's wrong? For reference the plugin code: https://github.com/jenkinsci/sloccount-plugin/blob/master/src/main/java/hudson/plugins/sloccount/SloccountPublisher.java Cheers, Nick -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/30aaded9-5601-4d55-aa73-3df7368a94d4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.