jenkins不会将电子邮件发送给多个收件人 [英] jenkins do not send emails to multiple recipients

查看:891
本文介绍了jenkins不会将电子邮件发送给多个收件人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Jenkins email-ext插件在构建开始时发送电子邮件. 当我只指定一个此类电子邮件的收件人时,一切都会顺利进行-我收到了电子邮件.

I use Jenkins email-ext plugin to send emails when a build starts. When I specified only one recipient of such emails, everything worked smoothly - I got emails.

但是当我指定了更多收件人时,尽管在构建日志中,詹金斯仍然停止发送电子邮件,但我仍可以看到它们已被发送(我没有收到)

But when I specified more recipients Jenkins stopped sending emails, despite in builds' logs I can see they are being sent (I do not get them)

我在内部版本的日志中看到以下消息:将电子邮件发送到:abc@abc.com def@abc.com".我在那里看不到任何错误.

Isee the following message in a build's logs: "Sending email to: abc@abc.com def@abc.com". I do not see any errors there.

推荐答案

对我有用的方法是在电子邮件地址之间使用逗号和空格,例如:

what worked for me was giving a comma and space between email addresses, such as:

x1@jenkins.com, x2@jenkins.com, x3@jenkins.com

Jenkins作业的XML表示形式如下:

XML representation of the Jenkins job looks as:

<maven2-moduleset plugin="maven-plugin@2.6">
...
 <reporters>
  <hudson.maven.reporters.MavenMailer>
   <recipients>x1@jenkins.com, x2@jenkins.com, x3@jenkins.com</recipients>
   <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
   <sendToIndividuals>true</sendToIndividuals>
   <perModuleEmail>true</perModuleEmail>
  </hudson.maven.reporters.MavenMailer>
 </reporters>
</maven2-moduleset>

它一直在发送邮件.

这篇关于jenkins不会将电子邮件发送给多个收件人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆