简体   繁体   English

Jenkins扩展电子邮件通知的触发因素是什么

[英]What is the trigger for Jenkins extended email notification

What is the trigger for Jenkins extended email notification plugin? Jenkins扩展电子邮件通知插件的触发因素是什么? I have in executed shell of the job path to bash script. 我在工作路径的执行外壳中执行了bash脚本。 And somewhere in this script I have notification: 在此脚本中的某处我有通知:

echo "Disc usage is over 90%" 回显“光盘使用率超过90%”

but after this I have to continue script execution without exiting but right away I need just send an email notification about this event. 但是在此之后,我必须继续执行脚本而不退出,但立即我需要发送有关此事件的电子邮件通知。 How can I do this? 我怎样才能做到这一点?

There are almost 20 different triggers for e-mail ext. 电子邮件分机几乎有20种不同的触发器。 See the advanced button under the e-mail configuration. 请参阅电子邮件配置下的高级按钮。 You can use either a separate script result to trigger e-mail ext or an overall build status at the time when the plugin gets triggered. 触发插件时,可以使用单独的脚本结果来触发电子邮件分机,也可以使用总体构建状态。

The latter better suits your situation, as it can be used along with Text Finder plugin to set the overall build status to Unstable depending on the parsed Disk usage value or whatever you need. 后者更适合您的情况,因为它可以与Text Finder插件一起使用,以根据解析的Disk usage量值或所需的任何值将整体构建状态设置为“ Unstable Then configure e-mail ext to send e-mail on Unstable . 然后配置电子邮件分机以在Unstable上发送电子邮件。

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

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