Jenkins build issue for with Bitbucket webhook trigger for PR

Hi Team,

I’m using git plugin for the source code and created the multi branch pipeline and using the gt for branch source and Scan Multibranch Pipeline Triggers selected the Bitbucket webhook trigger and Trigger on All pushes & Pull request opened or source branch updated. In bitbucket created the webhook with /bitbucket-hook/.

I’m facing issue with PR’s when we open the PR automated build is not getting triggered even though selected in events in bitbcuket and in bitbucket payload is showing sent successfully.

Can someone please help me issue with this?

Regards,
Venkateswar

Hello,
To resolve the issue with PR builds not triggering:

  1. Ensure Correct Webhook URL: Verify the webhook URL in Bitbucket is correctly set to /bitbucket-hook/ and includes the trailing slash.
  2. Enable SCM Polling: In Jenkins, ensure SCM polling is enabled for the multibranch pipeline.
  3. Check Webhook Events: Confirm that the webhook events for “Pull request created/updated” are correctly configured in Bitbucket.

These steps should help trigger the automated builds for PRs.

Best Regards,
Coxex

Can you share the logs from Bitbucket if possible ?
I’m suspecting this could be due to git plugin, can try to run below script from Jenkins script console ?

hudson.plugins.git.GitStatus.NOTIFY_COMMIT_ACCESS_CONTROL=‘disabled-for-polling’

and reproduce the issue again