I'd like to send an email after a build completes with some data from the reports that are run (PMD, Checkstyle, Findbugs, Cobertura) such as number of issues, new issues, coverage etc.
Is this possible?
I'd like to send an email after a build completes with some data from the reports that are run (PMD, Checkstyle, Findbugs, Cobertura) such as number of issues, new issues, coverage etc.
Is this possible?
I've managed to get some data using the email-ext plugin. You need to include a jelly file in the email sent like this:
There is a default template (
html.jelly
) which includes junit and Cobertura results which I've modified by adding something like this:For PMD and CheckStyle you can do something similar with:
I've not yet found a way to include the low/medium/high priority figures for the results.
Have a try! More check my gist here: https://gist.github.com/yangboz/9204868
In my case worked https://stackoverflow.com/a/22008267/1688570
For exact Action names look in \Jenkins\jobs\fispp-all-master\builds\${buildNumber}\build.xml file. I.e. I had to use hudson.plugins.findbugs.FindBugsMavenResultAction to show correct results.