1 <#-- |
|
2 ============================================================================ |
|
3 Name : cc_summary.html.ftl |
|
4 Part of : Helium |
|
5 |
|
6 Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
7 All rights reserved. |
|
8 This component and the accompanying materials are made available |
|
9 under the terms of the License "Eclipse Public License v1.0" |
|
10 which accompanies this distribution, and is available |
|
11 at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
12 |
|
13 Initial Contributors: |
|
14 Nokia Corporation - initial contribution. |
|
15 |
|
16 Contributors: |
|
17 |
|
18 Description: |
|
19 |
|
20 ============================================================================ |
|
21 --> |
|
22 |
|
23 <#assign table_info = pp.loadData('com.nokia.helium.metadata.SQLFMPPLoader', |
|
24 "${dbPath}") > |
|
25 |
|
26 <h1>${ant['build.id']}</h1> |
|
27 |
|
28 <#if ant?keys?seq_contains('publish')> |
|
29 <#if ant?keys?seq_contains('publish.dir.list')> |
|
30 <h2>Publish locations</h2> |
|
31 <p> |
|
32 <#list ant['publish.dir.list']?split(',') as site> |
|
33 <a href="${site}">${site}</a></br> |
|
34 </#list> |
|
35 </p> |
|
36 <#else> |
|
37 <#if ant?keys?seq_contains('publish.dir')> |
|
38 <h2>Publish locations</h2> |
|
39 <p><a href="${ant['publish.dir']}">${ant['publish.dir']}</a></p> |
|
40 </#if> |
|
41 </#if> |
|
42 </#if> |
|
43 |
|
44 <#assign ccm_logpath_table = table_info['select * from logfiles where path like \'%_ccm_get_input.log%\''] > |
|
45 |
|
46 <#assign logpath_id = ccm_logpath_table?keys> |
|
47 <#list logpath_id as logpath> |
|
48 <#assign metadata_ccm_records = table_info['select * from metadata where logpath_id = ${logpath} and (priority_id = (select id from priority where priority=\'ERROR\') or priority_id = (select id from priority where priority=\'WARNING\'))'] > |
|
49 <h2>Synergy errors</h2> |
|
50 <p> |
|
51 <#list metadata_ccm_records as recordentry> |
|
52 ${recordentry['data']} |
|
53 </#list> |
|
54 </p> |
|
55 </#list> |
|
56 |
|
57 <h2>Build errors</h2> |
|
58 <#assign compile_logpath_table = table_info['select * from logfiles where (path like \'%_compile.log\' and path not like \'%_clean_compile.log\')'] > |
|
59 <#assign colors = {'error': 'FF0000', 'critical': 'FF7000', 'warning': 'FFF000', 'remark': '0000FF'}/> |
|
60 |
|
61 <table border="1" cellpadding="0" cellspacing="0" width="100%"> |
|
62 <tr> |
|
63 <th width="55%">Component</th> |
|
64 <th width="15%">Errors</th> |
|
65 <th width="15%">Criticals</th> |
|
66 <th width="15%">Warnings</th> |
|
67 <th width="15%">Notes</th> |
|
68 </tr> |
|
69 <#assign logpath_id = compile_logpath_table?keys> |
|
70 <#list logpath_id as logpath> |
|
71 <#assign component_table = table_info['select id, component from component where logPath_id=${logpath}'] > |
|
72 <#assign component_ids = component_table?keys?sort > |
|
73 |
|
74 <#list component_ids as component_id> |
|
75 <tr> |
|
76 <td>"${component_table['${component_id}']}"</td> |
|
77 <#list colors?keys as type> |
|
78 <#assign count = "${table_info['select count(data) as COUNT from metadata where logpath_id=${logpath} and (priority_id = (select id from priority where priority like \"${type}\"))'][0]['COUNT']}" > |
|
79 <#if ( count?number > 0)> |
|
80 <td align="center" bgcolor="#${colors[type]}">${count}</td> |
|
81 <#else> |
|
82 <td align="center">0</td> |
|
83 </#if> |
|
84 </#list> |
|
85 </tr> |
|
86 </#list> |
|
87 </#list> |
|
88 </table> |
|
89 |
|
90 <#assign rom_logpath_table = table_info['select * from logfiles where (path like \'%roms.log\')'] > |
|
91 <#assign logpath_id = rom_logpath_table?keys> |
|
92 <#list logpath_id as logpath> |
|
93 <#assign romlog_table = table_info['select * from metadata where logpath_id = ${logpath}'] > |
|
94 <h2>ROMs ${rom_logpath_table['${logpath}']}</h2> |
|
95 <p> |
|
96 <#list romlog_table as recordentry> |
|
97 ${recordentry['data']}<br/> |
|
98 </#list> |
|
99 </p> |
|
100 </#list> |
|
101 |
|
102 <#assign policy_logpath_table = table_info['select * from logfiles where (path like \'%validate_policy.xml\')'] > |
|
103 <#assign logpath_id = policy_logpath_table?keys> |
|
104 <#list logpath_id as logpath> |
|
105 <#assign policy_table = table_info['select * from metadata where logpath_id = ${logpath}'] > |
|
106 <h2>Distribution Policy validation</h2> |
|
107 <p> |
|
108 <#list policy_table as recordentry> |
|
109 ${recordentry['data']}<br/> |
|
110 </#list> |
|
111 </p> |
|
112 </#list> |
|
113 |
|
114 <#if ant?keys?seq_contains('diamonds.build.id')> |
|
115 <p> |
|
116 <h2>ATS Test Results</h2> |
|
117 <a href="http://${ant['diamonds.host']}${ant['diamonds.build.id']}#tab=4" >http://${ant['diamonds.host']}${ant['diamonds.build.id']}#tab=4 </a> |
|
118 </p> |
|
119 </#if> |
|