Jenkins 可以发送电子邮件,从签出的文件中获取收件人吗?
我对 Jenkins 很陌生,我一直在尝试将 Jenkins 配置为根据签出文件中的文件发送电子邮件。
基本上,我正在检查将我们自己的构建系统脚本迁移到 Jenkins 下运行的可能性。现有要求之一是将项目维护者的电子邮件存储在存储库中的 txt 文件中。开箱即用的 Jenkins 无法做到这一点,也许某些插件可以做到这一点?
如果 Jenkins(也许通过某些插件?)可以根据签出的存储库副本中的信息发送电子邮件,那就太好了。
任何帮助、信息或搜索方向将不胜感激。
I'm quite a new to Jenkins and I'm stuck trying to configure Jenkins to send email based on a file from checked out files.
Basically, I'm checking possibility to migrate our own build system scripts to run under Jenkins. One of the existing requirements is storing project maintainers' emails in a txt file in the repository. Out of the box Jenkins couldn't do that, perhaps some plugin can do the trick?
It would be great if somehow Jenkins (maybe through some plugin?) could send emails based on the information from checked out copy of repository.
Any help, information or a direction of search would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许使用 Email Ext 插件 它允许您配置许多关于电子邮件的事情:
我没有找到直接从源文件中获取收件人列表的选项,但您可以使用 Groovy 或 Jelly 脚本轻松扩展此插件。
Maybe with the Email Ext plugin which allows you to configure many many things about email :
I didn't find the option to directly take the recipient list from a source file, but you can extend easliy this plugin with Groovy or Jelly scripts.