简体   繁体   English

jenkins控制台中的“ Fail”关键字应使jenkins构建失败

[英]“Fail” keyword in jenkins console should fail the jenkins build

I wish to fail the jenkins build if there's any "Fail" keyword in jenkins console log. 如果在jenkins控制台日志中有任何“失败”关键字,我希望使jenkins构建失败。 How would I do this? 我该怎么做?

Any suggestion? 有什么建议吗?

You can use Conditional BuildStep Plugin, with the option string match. 您可以使用条件BuildStep插件,并将选项字符串匹配。 If the condition fits you cant fail the build fe with a shell script and exit 1. 如果条件合适,则无法使用shell脚本使构建fe失败并退出1。

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

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