Jenkins ext-email plugin fails to send email on build success

前端 未结 10 2126
半阙折子戏
半阙折子戏 2020-12-18 18:32

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

I have configured my jobs on Jenkins and everything works fine except the fin

相关标签:
10条回答
  • 2020-12-18 19:22

    If every thing fails, try restarting jenkins process. That solved for me. Somehow the Jenkins system was unable to load all of the configs without a restart? But give it a try.

    0 讨论(0)
  • 2020-12-18 19:27

    After days of search for answer, it turns out the gmail has attachment limit for 25 mb, and my output is larger than that.

    Check your output size if you met this issue and you are using gmail for mail server.

    0 讨论(0)
  • 2020-12-18 19:30

    My first guess is that the global jenkins email configurations are not set correctly.

    Manage Jenkins -> Configure System -> E-mail Notification

    This is the default plugin, not the extended one you installed manually. The SMTP server field defaults to localhost, so unless you have an email server setup and running on the same box, this needs to be set.

    If that is set then I would try telnet'ing to your email server from your Jenkins server to make sure there is not a connection error.

    0 讨论(0)
  • 2020-12-18 19:31

    I had the same problem. It turns out that for some reason, Jenkins would not save my "Extended E-mail Notification" SMTP settings. At one point, it did save the setting and the emails started working. Make sure that the bit in red is selected and double-check it after you press Save:

    0 讨论(0)
提交回复
热议问题