Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75274

The job did not trigger after receiving the PR opened webhook in Jenkins.

XMLWordPrintable

      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.
       

            Unassigned Unassigned
            rick2020 rick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: