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

Triggers not working correctly for email recipients

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: email-ext-plugin
    • Labels:
    • Environment:
      Jenkins v. 2.235.5
      Git plugin v. 4.4.1
      Git client plugin v. 3.4.2
      Email Ext Plugin v. 2.75
    • Similar Issues:

      Description

      In jobs under email extension plugin advanced settings, triggers.  I have success and failure-any email triggers set for recipients, developers and culprits.  The plugin appears to not send emails to these individuals, even though their email address and user names are in the commit history.  The email plugin appears to ignore the advanced trigger settings for sending emails.  We never had any issue in the past until we upgraded to email ext plugin 2.75.  However, major changes have happened in git plugin and git client plugin as well which may have broke functionality.

        Attachments

          Activity

          Hide
          slide_o_mix Alex Earl added a comment -

          Can you provide a build log with debug mode enabled?

          Show
          slide_o_mix Alex Earl added a comment - Can you provide a build log with debug mode enabled?
          Hide
          jjardina Jason Jardina added a comment -

          Alex Earl can you point me to documentation that would show me how to do debug logging.  I have tried https://www.jenkins.io/doc/book/system-administration/viewing-logs/#logs-in-jenkins using hudson.plugins.emailext as the logger, but it did not capture anything.  I do not know what I am doing to get the log that you want to view.  Thanks!

          Show
          jjardina Jason Jardina added a comment - Alex Earl can you point me to documentation that would show me how to do debug logging.  I have tried  https://www.jenkins.io/doc/book/system-administration/viewing-logs/#logs-in-jenkins  using hudson.plugins.emailext as the logger, but it did not capture anything.  I do not know what I am doing to get the log that you want to view.  Thanks!
          Hide
          slide_o_mix Alex Earl added a comment -

          This is a special setting you can turn on in the "Manage Jenkins > System Configuration" setup. Under Extended Email Publishing there should be a checkbox for "debug mode". If you turn that on and then run a build, it should add a bunch of additional information to the build log. Please remember to sanitize the build log before posting (remove actual email addresses, etc).

          Show
          slide_o_mix Alex Earl added a comment - This is a special setting you can turn on in the "Manage Jenkins > System Configuration" setup. Under Extended Email Publishing there should be a checkbox for "debug mode". If you turn that on and then run a build, it should add a bunch of additional information to the build log. Please remember to sanitize the build log before posting (remove actual email addresses, etc).
          Hide
          jjardina Jason Jardina added a comment -

          Alex Earl Thank you.  I figured it would be something simple.  I have just kicked a job manually and will attached a sanitized build log after it completes. 

          Show
          jjardina Jason Jardina added a comment - Alex Earl Thank you.  I figured it would be something simple.  I have just kicked a job manually and will attached a sanitized build log after it completes. 
          Hide
          jjardina Jason Jardina added a comment - - edited

          Alex Earl I think I see what is happening in the log.  I have multiple triggers setup under Success.  Recipient List, Developer and Culprits.  In the log it only processes the first trigger, Recipient List and never appears to processes the following Developer and Culprits trigger.  Possibly looping logic?  Attached debug_log.txt

          Show
          jjardina Jason Jardina added a comment - - edited Alex Earl I think I see what is happening in the log.  I have multiple triggers setup under Success.  Recipient List, Developer and Culprits.  In the log it only processes the first trigger, Recipient List and never appears to processes the following Developer and Culprits trigger.  Possibly looping logic?  Attached debug_log.txt
          Hide
          slide_o_mix Alex Earl added a comment -

          The odd thing is that the project setup has not changed much recently, just the global configuration. The log file will definitely help.

          Show
          slide_o_mix Alex Earl added a comment - The odd thing is that the project setup has not changed much recently, just the global configuration. The log file will definitely help.
          Hide
          slide_o_mix Alex Earl added a comment -

          In the spots where is says things like parsing and sending, do those have actual real email addresses that have been sanitized?

          Show
          slide_o_mix Alex Earl added a comment - In the spots where is says things like parsing and sending, do those have actual real email addresses that have been sanitized?

            People

            • Assignee:
              Unassigned
              Reporter:
              jjardina Jason Jardina
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: