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

Add support to trigger MultiBranchPipeline from RabbitMQ Trigger

XMLWordPrintable

      The RabbitMQ Trigger plugin currently shows up in the "Build Triggers" for multibranch pipelines but activating it throws the following excpeiton:

      java.lang.ClassCastException: org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject cannot be cast to hudson.model.Job
      	at org.jenkinsci.plugins.rabbitmqbuildtrigger.RemoteBuildTrigger.start(RemoteBuildTrigger.java:40)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.submit(ComputedFolder.java:458)
      	at jenkins.branch.MultiBranchProject.submit(MultiBranchProject.java:884)
      	at com.cloudbees.hudson.plugins.folder.AbstractFolder.doConfigSubmit(AbstractFolder.java:1353)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.doConfigSubmit(ComputedFolder.java:402)
      	at java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)
      	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
      	at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)
      	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)
      

      We are using RabbitMQ triggers to trigger builds when someone checks in. We would actually not want to trigger the projects directly but just trigger the multibranch pipeline to start the scan process.

            Unassigned Unassigned
            pfeigl Philipp Feigl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: