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

Exclude branches that are also filed as PRs doesn't exclude branches in include filter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.121.3
      Github Branch Source Plugin 2.3.6

      We have a workflow where we merge our release branch back into our master branch periodically. To do this, we create a PR that merges the release branch back to master. Our configuration is setup to use the "Exclude branches that are also filed as PRs" branch discovery strategy, but it builds these "branch"-type status checks for these kind of "merge release by back to master" PRs anyway. I believe it's because the commit in the PR is in a branch that's in the include filter (the release branch): "release/*" (matches our release branches) is in the include filter.

       

      Ideally, PRs wouldn't build trigger this extra build, which is typically only run a commit lands on the release branch.

            Unassigned Unassigned
            benasher44 Ben Asher
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: