I've also raised https://issues.jenkins-ci.org/browse/JENKINS-32524
On Tuesday, 31 May 2016 14:05:01 UTC+1, Nicholas Brown wrote: > > Your correct: > > Neither of them implement this interface: > > https://github.com/jenkinsci/sloccount-plugin/blob/master/src/main/java/hudson/plugins/sloccount/SloccountPublisher.java#L30 > > https://github.com/jenkinsci/cobertura-plugin/blob/master/src/main/java/hudson/plugins/cobertura/CoberturaPublisher.java#L53 > > while for example the xunit plugin does: > > https://github.com/jenkinsci/xunit-plugin/blob/master/src/main/java/org/jenkinsci/plugins/xunit/XUnitPublisher.java#L63 > > I found the following issue tracking this for cobertua: > https://github.com/jenkinsci/cobertura-plugin/issues/50 > > Neither is listed on the compatibility page. > > On Tuesday, 31 May 2016 12:12:46 UTC+1, Daniel Beck wrote: >> >> Check the snippet generator if those types appear there for the 'General >> Step'. If they don't, they cannot be used that way, as they're not >> implementing the required API (SimpleBuildStep in this case). >> >> Also, >> https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md >> >> >> > On 26.05.2016, at 19:46, Nicholas Brown <[email protected]> wrote: >> > >> > I'm trying to get to grips with defining a workflow 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 this 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) >> > >> > The following step, using a similar publisher plugin also fails with a >> similar cryptic error: >> > >> > step([$class: 'hudson.plugins.cobertura.CoberturaPublisher', >> coberturaReportFile: 'coverage.xml']) >> > >> > Can anyone suggest what's wrong? Should it be possible to use these >> publisher plugins from a pipeline in this way? >> > >> > 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 [email protected]. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/a8ae6cec-cdb1-480f-b67d-ca2ef85fab46%40googlegroups.com. >> >> >> > For more options, visit https://groups.google.com/d/optout. >> >> -- 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/f4f1fa8b-80dc-49d0-98ca-067553cc7f50%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
