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

PRs are not rebuilt after their target branch is updated

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • Jenkins ver. 2.89.4, BlueOcean plug-ins 1.5.0, BitBucket branch source plug-in version 2.2.11

      GitHub and Bitbucket show different behavior w.r.t. re-evaluation of pull requests:

      1. GitHub PRs are rebuilt after their target branch is updated;
      2. Bitbucket PRs are not rebuilt after their target branch is updated.

      I find the GitHub behavior quite useful for early detection of incompatibilities between work of multiple developers.

      Although I am aware of the controversy around this behavior, I would really appreciate if Jenkins multi-branch pipelines behave in the same way for major git server vendors.

          [JENKINS-51765] PRs are not rebuilt after their target branch is updated

          This is configurable:

          you should simply uncheck

          Michael Kriese added a comment - This is configurable: you should simply uncheck

          Kyle Fernald added a comment - - edited

          viceice: is there a particular version of Jenkins or the plugin in which that option became available? I'm having this issue as well and don't see the checkbox.

          Running a Multi-branch pipeline on Jenkins 2.138.2, Bitbucket Source Plugin 2.4.2 with Bitbucket Server.

          Kyle Fernald added a comment - - edited viceice : is there a particular version of Jenkins or the plugin in which that option became available? I'm having this issue as well and don't see the checkbox. Running a Multi-branch pipeline on Jenkins 2.138.2, Bitbucket Source Plugin 2.4.2 with Bitbucket Server.

          kfernald I use Jenkins LTS 2.164.1 and Bitbucket Source Plugin 2.4.2 with Bitbucket Server.

          Maybe the "Build strategies -> Change requests" feature is not available in your Jenkins version

          Michael Kriese added a comment - kfernald I use Jenkins LTS 2.164.1 and Bitbucket Source Plugin 2.4.2 with Bitbucket Server. Maybe the "Build strategies -> Change requests" feature is not available in your Jenkins version

          Liam Newman added a comment - - edited

          Liam Newman added a comment - - edited viceice kfernald That strategy might only be in: https://wiki.jenkins.io/display/JENKINS/Basic+Branch+Build+Strategies+Plugin

          Duplicate of JENKINS-35674.

          Kalle Niemitalo added a comment - Duplicate of JENKINS-35674 .

            Unassigned Unassigned
            alexei_sintotski Alexei Sintotski
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: