
设置完成以后,我们点击Test Configuration,发送测试邮件时候出现失败,这里因为我们首先需要设置一下发送邮件的邮箱账号,这里只是配置邮件服务器地址、账号和密码,但是jenkins不知道采用哪个邮箱去发送,在系统设置页面找到“Jenkins Location”设置“系统管理员邮件地址”,必须与上图设置的用户保持一致。

此时我们已经把可以发送邮件了,下面我们来配置要发送的内容。
系统设置中找到Extended E-mail Notification位置配置发送信息,下图是我自己配置的,仅供参考

更详细的配置参考:
http://blog.csdn.net/fullbug/article/details/53024562
网友评论