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