-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins version: 2.89.2
FSTrigger Plugin version: 0.39
Pipeline: Multibranch version: 2.16
Jenkins throws an error when enabling "[FSTrigger] - Monitor folder" in MultiBranch Pipeline configuration. With simple Pipeline plugin works fine.
java.lang.ClassCastException: org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject cannot be cast to hudson.model.AbstractProject
at org.jenkinsci.lib.xtrigger.AbstractTrigger.getPollingNodeListRequiredNoWS(AbstractTrigger.java:360)
at org.jenkinsci.lib.xtrigger.AbstractTrigger.getPollingNodeList(AbstractTrigger.java:346)
at org.jenkinsci.lib.xtrigger.AbstractTrigger.getPollingNodesWithExecutors(AbstractTrigger.java:328)
at org.jenkinsci.lib.xtrigger.AbstractTrigger.getPollingNode(AbstractTrigger.java:308)
at org.jenkinsci.lib.xtrigger.AbstractTrigger.start(AbstractTrigger.java:81)
at org.jenkinsci.lib.xtrigger.AbstractTrigger.start(AbstractTrigger.java:26)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.submit(ComputedFolder.java:458)
at jenkins.branch.MultiBranchProject.submit(MultiBranchProject.java:885)
at com.cloudbees.hudson.plugins.folder.AbstractFolder.doConfigSubmit(AbstractFolder.java:1352)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.doConfigSubmit(ComputedFolder.java:402)
at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:52)
at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)