-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
Jenkins 2.492.1
Bitbucket Server Integration 4.1.4
Atlassian Bitbucket v8.19.11
I want to use Bitbucket Server Integration to automatically create a webhook to pre-build the code submitted in a pull request. When I submit a PR, the webhook is sent to Jenkins correctly. However, after Jenkins receives the pull request event, the corresponding job does not run, does not pull the corresponding branch, and does not trigger a build. I tried merged my submitted PR into the dev branch, and then the job was triggered and built successfully. I suspect that when I only open a PR, Bitbucket Server in the source control does not listen to the pull request branch. Therefore, it thinks that the ref of this repository has not changed, so it does not perform any actions.
I couldn't find a place in Bitbucket Server Integration to modify the listening branches. I configured ":refs/pull-requests/*" in the specified branch of the job, but it didn't work.
If there is an issue with my configuration, please guide me on the correct configuration location. Thank you for your help.