bitbucket-branch-source-plugin
bitbucket-branch-source-plugin copied to clipboard
Plugin does not trigger build in Jenkins for Multibranch pipeline
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
Is this potentially resolved with the current release? (context: https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/527#issuecomment-986227458)
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.