Allow to customize what to build in terms of branches and PRs:

      • Only branches
      • Branches and PRs
      • Only PRs

      And for PRs builds:

      • Merge status (PR head merged with destination branch)
      • Head status (PR head)
      • Allow (or not) PRs from origin repository

      It would be something similar to what github-branch-source is offering (included in this PR)

          [JENKINS-36283] PR builds customization

          Antonio Muñiz created issue -
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-33161 [ JENKINS-33161 ]

          Jesse Glick added a comment -

          To produce a self-contained, reproducible SCMRevision for a merge build it is necessary to encode the head of the destination branch as well as the head of the PR. Even for head builds, it is necessary to encode a deterministic destination branch head (such as the merge ancestor) in order to implement getTrustedRevision, which you should also do for this plugin.

          Jesse Glick added a comment - To produce a self-contained, reproducible SCMRevision for a merge build it is necessary to encode the head of the destination branch as well as the head of the PR. Even for head builds, it is necessary to encode a deterministic destination branch head (such as the merge ancestor) in order to implement getTrustedRevision , which you should also do for this plugin.
          Nicholas Brown made changes -
          Link New: This issue is duplicated by JENKINS-34931 [ JENKINS-34931 ]
          Nicholas Brown made changes -
          Link New: This issue is duplicated by JENKINS-33865 [ JENKINS-33865 ]

          Jesse Glick added a comment -

          Seems there are several issues all saying basically the same thing here.

          Jesse Glick added a comment - Seems there are several issues all saying basically the same thing here.
          Jesse Glick made changes -
          Link New: This issue duplicates JENKINS-35991 [ JENKINS-35991 ]
          Antonio Muñiz made changes -
          Link New: This issue is duplicated by JENKINS-35991 [ JENKINS-35991 ]
          Antonio Muñiz made changes -
          Link Original: This issue duplicates JENKINS-35991 [ JENKINS-35991 ]

          All cleared up now.

          Antonio Muñiz added a comment - All cleared up now.

            amuniz Antonio Muñiz
            amuniz Antonio Muñiz
            Votes:
            26 Vote for this issue
            Watchers:
            33 Start watching this issue

              Created:
              Updated:
              Resolved: