Sometimes we need to send some excerpts from Jenkins console output (job logs) as email, such as test results, etc.

Email-ext plugin of Jenkins can do this job. Add "${BUILD_LOG_EXCERPT, start="...", end="..."} into [Post-build Actions -> Editable Email Notification -> Default Content (or Content in a specified trigger)]. the value of "start" and "end" is a regular expression and the matching lines are excluded. " BUILD_LOG_REGEX" and " BUILD_LOG_MULTILINE_REGEX" are also useful. See [Editable Email Notification -> Content Token Reference] for all available tokens.

See also:
http://stackoverflow.com/questions/9439450/how-will-i-filter-out-only-errors-in-jenkins-email-ext-build-log-regex
http://siddesh-bg.blogspot.com/2012/04/using-buildlogregex-in-jenkins-email.html

最新文章

  1. smtplib.SMTPAuthenticationError: (535, b'Error: authentication failed')解决办法
  2. 【转】iOS学习之Storyboard中的UIScrollView使用自动布局
  3. 深入研究C语言 第四篇
  4. Qt QThread 多线程使用
  5. 爬虫_Crawler4j的使用
  6. java线程安全总结
  7. 简单的Java Web服务器
  8. 有关sybase的一些零星经验
  9. Linq查询IEnumerable与IQueryable
  10. Android Activity启动模式
  11. jsp解决kindeditor在线编辑器struts图片上传问题
  12. java读取数据写入txt文件并将读取txt文件写入另外一个表
  13. socketserver实现并发
  14. Java之hashCode的作用和equals方法的重构规则
  15. 【并发编程】【JDK源码】JDK的(J.U.C)java.util.concurrent包结构
  16. Golang:接口(interface)
  17. Contains Duplicate I & III
  18. RNN-LSTM-GRU-BIRNN
  19. enc28J60 网页控制LED灯
  20. Yes,I know the way to learn Ens !

热门文章

  1. Vue 动态参数
  2. 企业管理CRM不只是客户录入系统
  3. CRM客户管理软件如何帮助销售?
  4. AcWing 1273. 天才的记忆
  5. PHP严格类型检查模式
  6. asp.net mvc请求流程
  7. 访问其他人的vue项目
  8. python使用笔记13--清理日志小练习
  9. C语言:float类型%d输出
  10. [刘阳Java]_MyBatis_注解基本用法_第10讲