为什么詹金斯会“扩展电子邮件"?不包括扩展信息? [英] Why are Jenkins "extended emails" not including extended information?
问题描述
我们在Jenkins中安装了 email-ext 2.24.1 1.447.我们将扩展电子邮件通知"默认内容"设置为
We installed email-ext 2.24.1 into Jenkins 1.447. We set "Extended Email Notification" "Default Content" to
$ PROJECT_NAME-版本号$ BUILD_NUMBER-$ BUILD_STATUS:
$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
在$ BUILD_URL上查看控制台输出以查看结果.
Check console output at $BUILD_URL to view the results.
测试失败(与以前的版本相比,回归): $ {FAILED_TESTS,onlyRegressions = true}
Failed tests (regressions compared to previous builds): ${FAILED_TESTS, onlyRegressions=true}
更改:$ {CHANGES,showPaths = true,format =%a:%r%p \ n-\"%m \, pathFormat ="\ n \ t-%p"}
Changes: ${CHANGES, showPaths=true, format="%a: %r %p \n--\"%m\", pathFormat="\n\t- %p"}
我们转到一个项目,选择可编辑的电子邮件通知"并保留默认设置,其中默认主题"显示$ DEFAULT_SUBJECT,默认内容"显示$ DEFAULT_CONTENT.
We went to a project, and selected "Editable Email Notification" and left the default settings, where "Default Subject" says $DEFAULT_SUBJECT and "Default Content" says $DEFAULT_CONTENT.
在发出的电子邮件中,就好像email-ext不存在.我只看到构建信息,而与失败的测试或自上次成功以来的更改无关.
In emails that come out, it's as if email-ext doesn't exist. I just see build information, nothing about the tests that failed or the changes since last success.
为什么电子邮件不显示失败的测试和更改"?我该如何调试呢?是否有日志显示正在运行的内容?
Why do the emails not show Failed tests and Changes? And how do I debug this? Are there logs somewhere showing what is getting run?
编辑:我在项目默认内容"中添加了"HALLOO".没有出现.
Edit: I added "HALLOO" to the project "Default Content". Didn't show up.
全局配置的电子邮件部分的屏幕截图:
Screenshot of the email portion of the global configuration:
作业配置页面的电子邮件部分的屏幕截图:
Screenshot of the email portion of the job configuration page:
推荐答案
在 Post build actions
部分中,完全删除E-mail notification
.这将确保您的实例仅使用Editable email notification
In the Post build actions
section, delete the E-mail notification
altogether. This will ensure your instance is using only Editable email notification
这在我的版本(1.477)中是可能的,不确定此添加/删除构建后操作的功能何时发布.
This is possible in my version (1.477), not sure when this function of adding/deleting post-build actions released.
这篇关于为什么詹金斯会“扩展电子邮件"?不包括扩展信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!