【问题标题】:jenkins email notification "failed to connect, no password specified"jenkins 电子邮件通知“连接失败,未指定密码”
【发布时间】:2020-08-12 23:57:26
【问题描述】:

我使用Jenkins配置发送邮件通知, 配置截图如下

这里有两件很奇怪的事情:

  • 这里的密码以明文形式显示
  • 与网上资料对比发现这里少了“使用SMTP认证”选项,如

会出现我的配置的最终构建结果

[Pipeline] emailext
messageContentType = text/html; charset=UTF-8
Adding recipients from project recipient list
Analyzing: 2294625664@qq.com
Looking for: 2294625664@qq.com
    starting at: 0
    firstFoundIdx: 0
    firstFoundIdx-substring: 2294625664@qq.com
    => found type: 0
Analyzing: 2294625664@qq.com
Looking for: 2294625664@qq.com
    starting at: 0
    firstFoundIdx: 0
    firstFoundIdx-substring: 2294625664@qq.com
    => found type: 0
Analyzing: 2294625664@qq.com
Looking for: 2294625664@qq.com
    starting at: 0
    firstFoundIdx: 0
    firstFoundIdx-substring: 2294625664@qq.com
    => found type: 0
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: 2294625664@qq.com
*MessagingException message: failed to connect, no password specified?*
[Pipeline] echo

我的应用版本:

  • 詹金斯:2.235.2
  • 插件“电子邮件扩展插件”:“2.73”
  • 插件“电子邮件扩展模板插件”:“1.1”

请帮我解决这个问题。非常感谢!

【问题讨论】:

    标签: jenkins


    【解决方案1】:

    这周我也遇到了同样的问题。

    你可以按照 Antala Ashik 所说的去做。我删除了插件 2.73 并安装了 2.69

    它现在应该可以工作了。

    或者您可以点击下面的链接。您可以使用 Groovy 脚本来设置配置。这似乎是可能的解决方法。

    https://nickcharlton.net/posts/configuring-jenkins-email-ext-plugin-groovy.html

    【讨论】:

      【解决方案2】:

      将您的“电子邮件扩展”插件版本替换为“2.69”

      【讨论】:

        猜你喜欢
        • 2015-10-05
        • 2017-12-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多