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

An attempt to send an e-mail to empty list of recipients, ignored.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • email-ext-plugin
    • None

      So, I'm trying to automatically send a mail to developers who broke something.

      I thought that this would work by using "culprits" and "developers" but I literally tried all possibilities by this point and it simply does not render the correct list.

      The SCM used is GIT and is hosted on BitBucket.

      The jenkins version is LTS v2.319.1
      The plugin emailext version is v2.86

      Pipeline configuration:
      emailext body: "${currentBuild.currentResult{color:#569cd6}}: Job ${env.JOB_NAME{color:#569cd6}} build ${env.BUILD_NUMBER{color:#569cd6}}\n More info at: ${env.BUILD_URL{color:#569cd6}}",
      recipientProviders: [culprits(), developers()],
      subject: "Jenkins Build ${currentBuild.currentResult{color:#569cd6}}: Job ${env.JOB_NAME{color:#569cd6}}",
      attachLog: true
       

      Response when triggered externally or manually (it's always the same but I ):
      [Pipeline] emailext*17:14:57* Sending mail from default account using System Admin e-mail address*17:14:57* messageContentType = text/html; charset=UTF-8*17:14:57* Request made to attach build log*17:14:57* Adding recipients from project recipient list*17:14:57* Collecting change authors...17:14:57 build: 36*17:14:57* Adding recipients from trigger recipient list*17:14:57* Successfully created MimeMessage*17:14:57* An attempt to send an e-mail to empty list of recipients, ignored.
      At this point, I'm at a loss at what I'm doing wrong here. If I set an explicit "to" then the mails do get send! Debug has been enabled but... in this case it does not output a lot of information (in case the mail gets sent then a whole lot of debug data is generated so it does work!)

      Any help or insight is welcome at this point

            Unassigned Unassigned
            xabre arend lapere
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: