|
|
|
For the time being, I had to hard code the reportUrl as below:
#set($reportUrl = $build.url + "/junit_report") then used it as: <strong><a href="$reportUrl/by_tests" class="primary-value">$stats.tests</a></strong> tests ( <strong><a href="$reportUrl/failed_tests" style="color:#FF1A00">$stats.errors</a></strong> errors/ <strong><a href="$reportUrl/failed_tests" style="color:#FF7400">$stats.failures</a></strong> failures) And #set($reportUrl = $build.url + "/cobertura_report") then used it as: <a href="$reportUrl" class="more">Read more...</a> <tr><td colspan="4"><a href="$reportUrl" class="more">Read details</a></td> But, in order to use it for other projects which generate different reports, I still need to amek similar changes. A better idea than my current workaround will be much appreciated. Regards,A mit I'll be glad if you can share the attributes available for $reportset. As I'd like to fetch report name from it like junit_report or cobertura_report, which is available in $reportset.baseUrl.
No, this is not working.
I added this in the notification template: #if ($build.reports.junit) #foreach ($reportset in $build.reports.junit.values()) <!--AmitP : Modified reportURL as per http://track.pmease.com/browse/QB-907 --> #set($reportUrl = $build.url + $reportset.baseUrl) #set($stats = $reportset.stats) <h3>#if ($stats.errors + $stats.failures > 0) But this reportURL is malformed as it lloks like "http://<<QB_VIP>>/build/209614http://<<QB_SERVER:PORT>>/build/209614/junit_report/by_tests Problem is, I can replace $reportset.baseUrl by $build.url. But i can't get that report name i.e. "junit_report" or "cobertura", I am not able to fetch that. -Amit Hi Robin,
Can you kindly update, when the fix can be expected for this issue? Regards, Amit |
1. $reportset.baseUrl which is used to get a relative path for a specific report category, for example, the baseUrl of JUnit report is: /junit_report, and the NUnit report is: /nunit_report
2. $reportset.stats which is the basic statistics data for a specific report category of a specific reportset
3. $reportset.rows which stores the data report for a specific report category of a specific reportset so that you can use it to create the table in your mail.