本文介绍了Jenkins ext-email插件无法在构建成功时发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的计算机上安装了Jenkins版本1.480.3,电子邮件扩展插件2.28已安装.

I have Jenkins version 1.480.3 installed on my machine and Email-Extension Plugin 2.28.

我已经在Jenkins上配置了我的工作,除了最终的构建成功电子邮件外,其他一切都正常运行.

I have configured my jobs on Jenkins and everything works fine except the final build success email.

我为电子邮件扩展插件配置了四个触发器:

I have configured four triggers for Email-Extension plugin:

  1. 失败
  2. 成功
  3. 不稳定
  4. 构建之前

对于所有触发器,我都启用了附加日志",除了成功"之外,所有触发器都工作正常.

For all the triggers I have enabled "Attach Log" and all works fine except the "Success".

我在屏幕上收到以下消息:

I get the following message on screen:

请帮助我,因为我真的不知道如何解决这个问题.

Please could someone help me since I really have no clue how to resolve this.

推荐答案

我也遇到了这个问题.最后,这是因为我的附加的构建日志太大! SMTP服务器拒绝发送导致错误消息的电子邮件:

I had this problem too. In the end, it was because my attached build log was too large! The SMTP server refused to send out the e-mail causing the error message:

Error sending to the following VALID addresses: ...

禁用用于附加构建日志的选项或修复我的构建的输出以不转储太多文本的方法解决了该问题:

Disabling the option to attach the build log or fixing the output of my build to not dump so much text fixed the problem:

这篇关于Jenkins ext-email插件无法在构建成功时发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 16:36