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

Triggers not working correctly for email recipients

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Critical Critical
    • email-ext-plugin
    • Jenkins v. 2.235.5
      Git plugin v. 4.4.1
      Git client plugin v. 3.4.2
      Email Ext Plugin v. 2.75

      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.

          [JENKINS-63564] Triggers not working correctly for email recipients

          Alex Earl added a comment -

          Can you provide a build log with debug mode enabled?

          Alex Earl added a comment - Can you provide a build log with debug mode enabled?

          Jason Jardina added a comment -

          slide_o_mix 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!

          Jason Jardina added a comment - slide_o_mix 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!

          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).

          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).

          Jason Jardina added a comment -

          slide_o_mix 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. 

          Jason Jardina added a comment - slide_o_mix 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. 

          Jason Jardina added a comment - - edited

          slide_o_mix 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

          Jason Jardina added a comment - - edited slide_o_mix 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

          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.

          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.

          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?

          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?

          Alex Earl added a comment -

          Need more information, please reopen if this is still and issue and provide a build log.

          Alex Earl added a comment - Need more information, please reopen if this is still and issue and provide a build log.

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

              Created:
              Updated:
              Resolved: