• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • email-ext-plugin
    • None
    • 2.88

      I can't seem to figure out any recipientProviders that contact just a (GitHub) PR's owner/author, in all cases.

      In simple cases, where somebody creates a PR and pushes a few patches, developers seems like the right target.  But as soon as the PR owner merges with master, that becomes every patch owner in the merge also, correct?

      Is there an option I am missing here to achieve what I am looking for?

          [JENKINS-62079] No way to email just a PR's owner

          Brian J Murrell created issue -

          Alex Earl added a comment -

          I don't think I have access to that information. The GitHub plugin (if that is being used) might have that info and could implement their own RecipientProvider which could then be used in email-ext.

          Alex Earl added a comment - I don't think I have access to that information. The GitHub plugin (if that is being used) might have that info and could implement their own RecipientProvider which could then be used in email-ext.

          Yeah, I suspected email-ext wouldn't have access to GH info.  It's interesting that another plugin can implement a recipientProvider.

          Is my observation correct about a PR that merges other patches into it, such as say, merging another (i.e. master) branch, the single owner of the primary patch of the PR is lost and there is no existing recipientProvider that will distinguish that owner (of the primary patch) on the PR from all of the owners of patches in the merge?

          Brian J Murrell added a comment - Yeah, I suspected email-ext wouldn't have access to GH info.  It's interesting that another plugin can implement a recipientProvider . Is my observation correct about a PR that merges other patches into it, such as say, merging another (i.e. master ) branch, the single owner of the primary patch of the PR is lost and there is no existing recipientProvider that will distinguish that owner (of the primary patch) on the PR from all of the owners of patches in the merge?

          Alex Earl added a comment -

          Jenkins is full of such extension points. It makes it very extendable. I do not know about the owner of the primary patch being lost, but there is no recipient provider that I know about that does what you want.

          Alex Earl added a comment - Jenkins is full of such extension points. It makes it very extendable. I do not know about the owner of the primary patch being lost, but there is no recipient provider that I know about that does what you want.

          I do not know about the owner of the primary patch being lost

          Not lost, but not identifiable as the single individual for which the patches in the PR belong, among the many authors of the perhaps many patches that got added from a merged branch (i.e. again, when say, merging master to a PR).

          Brian J Murrell added a comment - I do not know about the owner of the primary patch being lost Not lost , but not identifiable as the single individual for which the patches in the PR belong, among the many authors of the perhaps many patches that got added from a merged branch (i.e. again, when say, merging master to a PR).

          Alex Earl added a comment -

          I don't know of any way to identify that from the email-ext plugin perspective. Which plugin are you using for SCM?

          Alex Earl added a comment - I don't know of any way to identify that from the email-ext plugin perspective. Which plugin are you using for SCM?

          I am using the github-branch-source plugin with pipelines.

          Ultimately the problem is that (AFAICT) the most useful recipientProvider to use with a single PR is:

          developers

          • Sends email to all the people who caused a change in the change set.  

          But as I mentioned before that list gets polluted with every author of every patch that was merged from a parent branch when doing a merge to get one's PR up-to-date with it's parent branch.

          Brian J Murrell added a comment - I am using the github-branch-source plugin with pipelines. Ultimately the problem is that (AFAICT) the most useful recipientProvider to use with a single PR is: developers Sends email to all the people who caused a change in the change set.   But as I mentioned before that list gets polluted with every author of every patch that was merged from a parent branch when doing a merge to get one's PR up-to-date with it's parent branch.

          Alex Earl added a comment -

          Correct, it looks through all of the changesets and grabs all the authors.

          Alex Earl added a comment - Correct, it looks through all of the changesets and grabs all the authors.
          Ian Williams made changes -
          Link New: This issue duplicates JENKINS-62074 [ JENKINS-62074 ]
          Alex Earl made changes -
          Assignee Original: Alex Earl [ slide_o_mix ]

            slide_o_mix Alex Earl
            brianjmurrell Brian J Murrell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: