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

Latest version of bitbucket pull request builder plugin checks out wrong commit on PRs


    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • Jenkins 2.332.1
      Git Plugin 4.10.3
      BitBucket Pull Request Builder Plugin 1.5.0

      In testing upgrading the Jenkins core and plugins I've encountered this twice; last time was about a year ago and I was able to resolve it by reverting the git plugin to 4.3.0 and Bitbucket pullrequest builder plugin to 1.4.28

      When jobs are triggered with the Bitbucket Pullrequest Builder Plugin, the git clone uses the latest commit on the target branch, not the HEAD of the dev branch being tested. That commit is visible in the console output but it reports an error stating the commit is from a different repo:

      The pull request:

      And the git info summary on the CI job lists the target branch, not the source branch, as is the case with pre-upgrade jobs:


      I confirmed same results with pipeline and freestyle jobs.

            Unassigned Unassigned
            ckratzmann Caty Kratzmann
            0 Vote for this issue
            2 Start watching this issue