-
Improvement
-
Resolution: Not A Defect
-
Major
-
checkstyle-plugin 3.44
CheckStylePublisher should implement SimpleBuildStep to allow tighter workflow integration.
// DOES NOT WORK step([$class: 'CheckStylePublisher', pattern: '**/checkstyle-result.xml'])
java.lang.UnsupportedOperationException: CheckStylePublisher as a interface jenkins.tasks.SimpleBuildStep could mean either hudson.plugins.jshint.CheckStylePublisher or hudson.plugins.checkstyle.CheckStylePublisher at org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce(DescribableHelper.java:226) at org.jenkinsci.plugins.workflow.structs.DescribableHelper.buildArguments(DescribableHelper.java:185) at org.jenkinsci.plugins.workflow.structs.DescribableHelper.instantiate(DescribableHelper.java:91) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:103) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:133) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:112) ... at java.lang.Thread.run(Thread.java:745)