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

Opening a PR when the branch is still building with "Exclude branches that are also filed as PRs" leads to a never ending build in BitBucket

XMLWordPrintable

      I have a pipeline multibranch project, with the "Discover Branches Strategy" set to "Exclude branches that are also filed as PRs".

      Now, when I create a branch, build it, then create a PR, everything works as expected (the branch is removed in jenkins, the PR is visible and in Bitbucket it references only the PR build.

      But when I create a PR while the branch is still building, Bitbucket shows two builds (PR and branch) but then branch get deleted after the previous build and therefore never finishes, leading to not being able to merge the PRs in Bitbucket when all builds need to pass.

      I actually do not really see a solution (maybe an option to keep the branch when it is building, or always keep it even if there is a PR just not build it or to just send Bitbucket an "OK" for the branch build in that case).

            Unassigned Unassigned
            roemer Roman Bäriswyl
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: