bitbucket-branch-source-plugin icon indicating copy to clipboard operation
bitbucket-branch-source-plugin copied to clipboard

Plugin does not trigger build in Jenkins for Multibranch pipeline

Open Thilaknath opened this issue 4 years ago • 2 comments

Version report

Jenkins Version: 2.263.3 Bitbucket Server: Atlassian Bitbucket v7.13.1 Branch Source Plugin: 2.9.8

Reproduction steps

  • Create a Bitbucket Org following documentation
  • Set Automatically Trigger Builds for PR and develop branches
  • Based on the repositories filtered, Open a PR in any of the repository

Results

Expected result:

When a PR is opened, A PR pipeline should be triggered based on a Bitbucket Org, Multibranch repository setup.

Actual result:

Checking PR-312 from CSM/com.mobile.sap and branch trigger-2 ‘Jenkinsfile’ found Met criteria Did not schedule build for branch: PR-312

Thilaknath avatar Sep 13 '21 20:09 Thilaknath

Is this potentially resolved with the current release? (context: https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/527#issuecomment-986227458)

lifeofguenter avatar Dec 05 '21 13:12 lifeofguenter

One thing to check when you are encountering this problem is: at the organization folder level, the configuration entry Automatic branch project triggering -> Branch names to build automatically. Make sure this regex is either .* or has PR-\d+ inside of your regex.

rkivisto avatar Feb 09 '23 22:02 rkivisto