Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48863

FSTrigger doesn't work with Multibranch Pipeline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • fstrigger-plugin
    • 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)

            gbois Gregory Boissinot
            minas Gediminas Jaudegis
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: