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

Extended Email Notification v2.89 - SMTP authentication check box unavailable

      Hi Team, 

      We are trying to use the extended email notification. Upon configuring in the Jenkins UI, we could not see a check box for SMTP authentication, but just a normal credentials input.

      We tried to configure the SMTP credentials there but do not think the plugin is picking that up. Is there other place i should configure it? Here is the log when we try to send email:

      08:36:22 DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
      08:36:22 DEBUG: Tables of loaded providers from javamail.providers
      08:36:22 DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle]}
      08:36:22 DEBUG: Providers Listed By Protocol: {imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle]}
      08:36:22 DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]
      08:36:22 DEBUG SMTP: need username and password for authentication
      08:36:22 DEBUG SMTP: protocolConnect returning false, host=smtp.office365.com, user=jenkins, password=<null>
      08:36:22 AuthenticationFailedException message: failed to connect, no password specified? 

       

          [JENKINS-69060] Extended Email Notification v2.89 - SMTP authentication check box unavailable

          jason kwan added a comment -

          Seems like using credentials is ok. But the important part is to set the credentials scope as global instead of system. Hope this will help someone!

          jason kwan added a comment - Seems like using credentials is ok. But the important part is to set the credentials scope as global instead of system. Hope this will help someone!

          Gregory added a comment -

          jason619 thank you, I was running into that and expanding the credential scope got notifications working for me.

          It seems like there are still two issues then:

          • error reporting in the logs is insufficient (it should say that it failed to receive the credentials, not silently fail)
          • the plugin should be able to use system-scoped credentials (unless I'm missing something)

          Gregory added a comment - jason619 thank you, I was running into that and expanding the credential scope got notifications working for me. It seems like there are still two issues then: error reporting in the logs is insufficient (it should say that it failed to receive the credentials, not silently fail) the plugin should be able to use system-scoped credentials (unless I'm missing something)

            Unassigned Unassigned
            jason619 jason kwan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: