Email-ext Jenkins: How to send email with Tests statistics like Run: 10, Failed:2, Passed: 8

Dima Star picture Dima Star · May 22, 2013 · Viewed 7.1k times · Source

I use Maven+TestNG auto-tests run by Jenkins. I know that the is a token for failed tests like ${FAILED_TESTS} but it also includes long stack-trace which is difficult to read.

So I want Jenkins to send email like this: Run: 10, Failed:2, Passed: 8

Answer

Jeff Olson picture Jeff Olson · May 22, 2013

It looks like you could customize the email template by using the Email-ext plugin and Jelly templates.

See http://softwaretestautomationnotes.blogspot.com/2011/07/customizing-post-build-email.html for an example of this.

I don't know of any way to do this out of the box.