|
Hello,
I'm using the static-analysis template but there's no data is output in the email. (see screen shot http://imgur.com/jGFtl) I've also added a piece of code to extract FindBugs result only with no luck: <div class="content"> <h1>Findbugs Results</h1> <j:set var="fb" value="${it.getAction('hudson.plugins.findbugs.FindBugsResultAction')}" /> <table width="100%"> <tr><td colspan="2"><b>Findbugs Result</b></td></tr> <tr><td>Result:</td><td>${fb.result.pluginResult}</td></tr> <tr><td>Total:</td><td>${fb.result.numberOfWarnings}</td></tr> <tr><td>Fixed:</td><td>${fb.result.numberOfFixedWarnings}</td></tr> <tr><td>New:</td><td>${fb.result.numberOfNewWarnings}</td></tr> <tr><td colspan="2"><a href="${rooturl}${build.url}/findbugs">View Report</a></td></tr> </table> </div> Anybody has an idea of what might be wrong? Thank you, Hung |
|
The original template contains not the same code. Where did you get the code from? Your example will not work, please use:
https://github.com/jenkinsci/email-ext-plugin/blob/master/src/main/resources/hudson/plugins/emailext/templates/static-analysis.jelly Does that work better? Ulli Am 26.09.2012 um 01:50 schrieb Hung Huynh <[hidden email]>: > Hello, > > I'm using the static-analysis template but there's no data is output in the email. (see screen shot http://imgur.com/jGFtl) > > I've also added a piece of code to extract FindBugs result only with no luck: > > <div class="content"> > <h1>Findbugs Results</h1> > <j:set var="fb" value="${it.getAction('hudson.plugins.findbugs.FindBugsResultAction')}" /> > <table width="100%"> > <tr><td colspan="2"><b>Findbugs Result</b></td></tr> > <tr><td>Result:</td><td>${fb.result.pluginResult}</td></tr> > <tr><td>Total:</td><td>${fb.result.numberOfWarnings}</td></tr> > <tr><td>Fixed:</td><td>${fb.result.numberOfFixedWarnings}</td></tr> > <tr><td>New:</td><td>${fb.result.numberOfNewWarnings}</td></tr> > <tr><td colspan="2"><a href="${rooturl}${build.url}/findbugs">View Report</a></td></tr> > </table> > </div> > > Anybody has an idea of what might be wrong? > > Thank you, > > Hung > |
|
In reply to this post by hhuynh
Thank you for your hint but yes I'm using that template. The new code was just something I got from stackoverflow and added to the existing static-analysis.
As you can see that part of the code also showing null data. But then I found out how to reproduce it consistently. The data only shows up with Free style project. It doesn't show up for Maven2/3 project. Wonder if this issue is new? On Tuesday, September 25, 2012 4:50:53 PM UTC-7, Hung Huynh wrote: Hello, |
|
In reply to this post by hhuynh
I filed this bug just in case it's new https://issues.jenkins-ci.org/browse/JENKINS-15324
On Tuesday, September 25, 2012 4:50:53 PM UTC-7, Hung Huynh wrote: Hello, |
| Powered by Nabble | Edit this page |
