0
我已驗證我的AuthSmtp設置。我確信一切都完美。無法找出無法發送郵件的原因。哈德森郵件服務器不工作
我得到這個例外,我所有的測試運行後哈德森嘗試發送郵件
ERROR: Unknown SMTP host: mail.authsmtp.com
javax.mail.MessagingException: Unknown SMTP host: mail.authsmtp.com;
nested exception is:
java.net.UnknownHostException: mail.authsmtp.com
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1932)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)
at javax.mail.Service.connect(Service.java:295)
at hudson.tasks.Mailer$DescriptorImpl.send(Mailer.java:509)
at hudson.tasks.Mailer$DescriptorImpl.send(Mailer.java:476)
at hudson.tasks.MailSender.execute(MailSender.java:91)
at hudson.tasks.Mailer.perform(Mailer.java:112)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:34)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:646)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:624)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:600)
at hudson.model.Build$RunnerImpl.post2(Build.java:163)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:566)
at hudson.model.Run.run(Run.java:1414)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:40)
at hudson.model.ResourceController.execute(ResourceController.java:82)
at hudson.model.Executor.run(Executor.java:137)
Caused by: java.net.UnknownHostException: mail.authsmtp.com
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:175)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)
at java.net.Socket.connect(Socket.java:546)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:286)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:231)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900)
... 16 more
[DEBUG]跳繩觀看依賴更新;構建未配置觸發器:feature-mentoring-connections-v2#102 完成:SUCCESS
什麼可能會出錯。
是的,它是有效的URL。是Jenkins我可以發送測試郵件嗎?沒有防火牆問題。 – 123
只是爲了澄清:您能夠通過Jenkins發送測試郵件? –
是的,我可以通過哈德森發送測試郵件。 – 123