-
Bug
-
Resolution: Not A Defect
-
Blocker
-
Jenkins Version - 2.332.1, Email Extension Plugin Version - 2.89
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?
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!