I am writing a jelly script and using getFailedSinceRun() method and the email-ext plugin to send results of failed test via email. This works and shows for example: failed since #5 with an associated link to that build. What I am trying to do is actually take getFailedSinceRun() and the current ${env.BUILD_NUMBER} and show: This build has failed the last x number of builds (example: if this current build is #10 and the last 5 builds have failed then show: This build has failed the last 5 builds). The Test Results Analyzer plugin does this but I cannot email those results. I have tried a variety of ways with no luck. I am trying to not have to reinvent the wheel. Thanks in advance.
Also, here is a snippet of the actual code: <j:forEach var="failed_alert" items="${packageFailedTestList}"> <tr> <td style="${td_style}" title="${failed_alert.getFullName()}"> <a href="${rooturl}${failed_alert.getFailedSinceRun().getUrl()}">${failed_alert.getFailedSinceRun().getDisplayName()}</a> </td> This is HTML in jelly and the output is: Total Number Of Errors In This Build Are: 11 errors in package Test Failing Since Build #Failing Test Method #5 Test -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5d92fb46-fb27-47b5-9a50-52558d142f00%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.