jenkins 配置阿里云企业邮箱发送邮件测试,各种报错终于解决

看了网上很多文档,按照配置报各种错误,于是记录该文档,希望能帮助有缘人。

步骤一:配置系统管理员邮件地址

步骤二:邮箱扩展配置 Extended E-mail Notification(这个只要能发邮件了可以自行配置)不配置不影响发送邮件测试。

步骤三:邮件通知(关键)

SMTP服务器:smtp.qiye.aliyun.com      smtp.mxhichina.com 两个二选一

注意点:阿里云邮箱账号安全设置中的:三方客户端安全密码一定要关闭

最后记录下错误记录:

1、Unsupported or unrecognized SSL message

2、Got bad greeting from SMTP host: smtp.mxhichina.com, port: 465, response: [EOF]

3、Got bad greeting from SMTP host: smtp.mxhichina.com, port: 465, response: [EOF]

这里开启邮箱账号密码就登录不了,出现上面的错误。

  • 10
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
首先,你需要确保已经安装了 Jenkins,并且在你的服务器上已经配置好了阿里云的镜像地址。 以下是配置 Jenkins 使用阿里云镜像的步骤: 1. 打开 Jenkins 的管理界面,点击左侧菜单栏的 "Manage Jenkins"。 2. 在 "Manage Jenkins" 页面,点击 "Manage Plugins"。 3. 在 "Manage Plugins" 页面,切换到 "Available" 选项卡,并在搜索框中输入 "Config File Provider"。找到对应的插件,勾选并点击 "Install without restart" 安装该插件。 4. 安装完成后,返回到 Jenkins 的管理界面,再次点击 "Manage Jenkins"。 5. 在 "Manage Jenkins" 页面,点击 "Managed files"。 6. 在 "Managed files" 页面,点击 "Add a new Config"。 7. 在 "Config file type" 下拉框中选择 "Custom file",点击 "OK"。 8. 在 "Name" 输入框中填写一个名称(比如 "aliyun-mirror")。 9. 在 "Content" 输入框中粘贴以下内容: ```bash # 修改 Docker 镜像源为阿里云镜像 FROM ubuntu:latest RUN echo 'deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse' > /etc/apt/sources.list \ && echo 'deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse' >> /etc/apt/sources.list \ && echo 'deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse' >> /etc/apt/sources.list \ && echo 'deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse' >> /etc/apt/sources.list \ && echo 'deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse' >> /etc/apt/sources.list \ && echo 'deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse' >> /etc/apt/sources.list \ && echo 'deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse' >> /etc/apt/sources.list \ && echo 'deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse' >> /etc/apt/sources.list ``` 10. 点击 "Save" 保存配置文件。 配置完成后,你可以在 Jenkins 的 Job 中使用该配置文件。在你的 Job 中选择 "配置",然后在 "Build Environment" 部分勾选 "Provide Configuration files",并选择 "Custom files"。在 "Files to copy" 中选择 "aliyun-mirror" 配置文件。 这样,Jenkins 在每次构建时都会使用该配置文件,从而将 Docker 镜像源修改为阿里云镜像。请确保你的服务器能够访问到阿里云的镜像服务。 希望对你有帮助!如果还有其他问题,请随时提问。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值