jenkinsci / bitbucket-push-and-pull-request-plugin

Plugin for Jenkins v2.138.2 or later, that triggers job builds on Bitbucket's push and pull request events.

Home Page:https://plugins.jenkins.io/bitbucket-push-and-pull-request

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multibranch Pipeline is not triggered when a PR is created

MorgeMoensch opened this issue · comments

Hello, thanks for the cool plugin!

What I would like to do:

  • Run Pipeline on PR opened
  • Run Pipeline on PR updated with commits

What doesn't work:

A new multibranch-pipeline isn't initiated when I open a Pull Request. The Webhook from Bitbucket Server works
image

And From Manage Jenkins > System Log > All Logs I can see that it is received successfully:
image

However, no new pipeline gets created. When I trigger 'Scan Multibranch Pipeline Now' via the Jenkins UI, it shows up and gets run. However, the result is not propagated back to the Bitbucket PR as it is with the PR Updated triggers.

I would be okay with automatically scanning the multibranch pipeline every x minutes, but I would need the pipeline results to be propagated to the PR.

Does anyone have an idea what I'm missing here?

Below is the configuration from my Jenkinsfile:

properties([
  pipelineTriggers([
    [
      $class: 'BitBucketPPRTrigger',
      triggers : [
        [          
          $class: 'BitBucketPPRPullRequestServerTriggerFilter',
          actionFilter: [
            $class: 'BitBucketPPRPullRequestServerCreatedActionFilter',
          ]
        ],
        [
          $class: 'BitBucketPPRPullRequestServerTriggerFilter',
          actionFilter: [
            $class: 'BitBucketPPRPullRequestServerSourceUpdatedActionFilter',
          ]
        ]
      ]
    ]
  ])
])