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.
https://plugins.jenkins.io/bitbucket-push-and-pull-request
MIT License
46 stars 50 forks source link

Multibranch Pipeline is not triggered when a PR is created #300

Open MorgeMoensch opened 1 year ago

MorgeMoensch commented 1 year ago

Hello, thanks for the cool plugin!

What I would like to do:

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',
          ]
        ]
      ]
    ]
  ])
])
alifiroozi80 commented 9 months ago

Hello @MorgeMoensch, I am facing the same issue... Would you happen to have any updates or suggestions?

MorgeMoensch commented 9 months ago

Hi @alifiroozi80

We implemented the following workaround:

Since we will move away from Jenkins in the near-term, I will not invest more time in this issue. Good luck!