首页 > 其他 > 详细

Send Excerpts from Jenkins Console Output as Email Contents

时间:2014-03-18 11:45:59      阅读:369      评论:0      收藏:0      [点我收藏+]

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

Send Excerpts from Jenkins Console Output as Email Contents,布布扣,bubuko.com

Send Excerpts from Jenkins Console Output as Email Contents

原文:http://www.cnblogs.com/darkmatter/p/3606773.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!