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

Can't access requestor email from Freestyle project or global configuration

    • Icon: Improvement Improvement
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • email-ext-plugin
    • None

      Hi,

      I use Freestyle projects in Jenkins, and I cannot find a way to add the "requestor" as a default recipient for failure email.  The documentation talks about pipelines and how you can, for example, set recipientProviders to e.g. [developers(), requestors()], but there is no visibility into that from the Freestyle configuration, as far as I can see.  And also, as far as I can see, there is no Token/Macro I can use (e.g. $REQUESTOR) to plug the value into the defaults.

      You can reproduce this issue by having a failing build and manually going to that project and click "Build Now".

      I also see this from a New Pull Request off a New Branch – I'm using the Bitbucket Push/Pull Plugin to integrate into our BB git repositories, and if I go through the standard process of create branch, push updates to branch, create PR... when BBPPP gets Jenkins to build off the PR Create trigger, it "thinks" there are "No Changes" (even though there are) – and if it fails, no email is sent out.

          [JENKINS-67172] Can't access requestor email from Freestyle project or global configuration

          Derek Atkins added a comment -

          Aha, I think I found this. Based on:

          https://stackoverflow.com/questions/37144078/jenkins-email-ext-plugin-thinks-i-have-no-recipients-configured

          which references

          https://issues.jenkins.io/browse/JENKINS-34731

          The settings are hidden under the "Advanced" setting for the plugin within each job (there does not appear to be a way to set this globally). Within each job configuration you need to go to the Post-Build Actions for the job, and then in the Editable Email Notification configuration go to the bottom of the section and click the "Advanced Settings" button. That expands more settings, where you will find the "Triggers" section. In there you will see the triggers you defined globally (for me "Failure - Any"). THERE you can set the list of recipients to receive email, including "Requestor".

          Derek Atkins added a comment - Aha, I think I found this. Based on: https://stackoverflow.com/questions/37144078/jenkins-email-ext-plugin-thinks-i-have-no-recipients-configured which references https://issues.jenkins.io/browse/JENKINS-34731 The settings are hidden under the "Advanced" setting for the plugin within each job (there does not appear to be a way to set this globally). Within each job configuration you need to go to the Post-Build Actions for the job, and then in the Editable Email Notification configuration go to the bottom of the section and click the "Advanced Settings" button. That expands more settings, where you will find the "Triggers" section. In there you will see the triggers you defined globally (for me "Failure - Any"). THERE you can set the list of recipients to receive email, including "Requestor".

          Basil Crow added a comment -

          warlord Can this issue be closed?

          Basil Crow added a comment - warlord Can this issue be closed?

            Unassigned Unassigned
            warlord Derek Atkins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: