简体   繁体   English

Jenkins-更改电子邮件扩展插件中的主题

[英]Jenkins - Change subject in email-ext plugin

I am using email-ext plugin to trigger emails after the build fails or become unstable. 我正在使用email-ext插件在构建失败或变得不稳定之后触发电子邮件。 The build becomes unstable when some of the tests fail and the build fails when the compilation fail. 当某些测试失败时,构建将变得不稳定,而当编译失败时,构建将失败。

Can we use conditions to display different customized subject depending on the cause of the email trigger? 我们可以根据电子邮件触发的原因使用条件来显示不同的自定义主题吗?

Yes, below the Editable email notification interface there should be an Advanced settings.. button which will give you access to various triggers. 是的,在“ 可编辑的电子邮件通知”界面下方应有一个“ 高级设置..”按钮,该按钮可让您访问各种触发器。 As you add & configure the triggers, you'll note an Advanced.. button for each of them, which will allow you to fully customize the e-mail template. 添加和配置触发器时,您会注意到每个触发器都有一个Advanced ..按钮,这将使您能够完全自定义电子邮件模板。

邮件配置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM