解决Jenkins Email Extension Plugin发送邮件失败
昨天用來測試的虛擬機不知道怎么回事,Firefox自動升級到8.0。結果就是我的WebDriver PythonBindings 在FF8下面是用不了的。現象就是,實例化一個Firefox Driver,然后 driver.get(‘http://www.google.com’),立刻返回,瀏覽器沒有做任何響應。這個問題我自己不知道怎么解決,外面的世界 貌似也沒人遇到這個問題,究竟是沒人碰到這個問題呢,還是很少用人PythonBinding?
恢復了VM鏡像,然后讓Jenkins重新跑起來,但是之后就遇到一個問題,發郵件一直失敗。錯誤是
ERROR: Could not send email as a part of the post-build publishers.
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 553-5.1.2 We weren’t able to find the recipient domain. Please check for any
553-5.1.2 spelling errors, and make sure you didn’t enter any spaces, periods,
553 5.1.2 or other punctuation after the recipient’s email address. i6sm163233obl.2
搜了一下,應該是Jenkins標準的郵件插件是用空格來做多個郵件地址的分隔符,而Email Extension Plugin使用逗號分隔多個郵件地址的。但是這應該是一個很早之前的問題,已經被fix了。
傻傻地build了好多個以后,我想起來,恢復VM以后我是直接把之前的config.xml拷貝回去那個任務的文件夾里面的。進去打開那個config.xml,找到這一行:
<recipientList>$PROJECT_DEFAULT_RECIPIENTS</recipientList>
刪掉。就好了。
總結
以上是生活随笔為你收集整理的解决Jenkins Email Extension Plugin发送邮件失败的全部內容,希望文章能夠幫你解決所遇到的問題。