When using a Freestyle job with a wildcard branch filter, the source of PR's are ignored when multiple branches exist.  So let's say you push changes to branch bugfix/a and then branch bugfix/b both of which were branched from QA.  If you create a PR for bugfix/a, it's bugfix/b that is cloned and compiled and then a second job is queued for bugfix/a.  If the PR is for bugfix/a then it would be expected that it's bugfix/a that is pulled.

      Seems to me that the easiest fix would be to populate parameters or env variables with the branch, tag, and Id supplied in the PR payload for dynamic branch filtering.

          [JENKINS-69798] PullRequest source is ignored

          Eric Evans created issue -
          Eric Evans made changes -
          Labels New: bitbucket-server plugin pull-request
          Naj made changes -
          Labels Original: bitbucket-server plugin pull-request New: bitbucket-server plugin pull-request triaged
          Martin Henschke made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            ericmevans Eric Evans
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: