common/diamonds/sf-run-analysis.xml.ftl
changeset 695 1eaeee12c3d1
parent 694 260b05585dc3
child 696 b9ad18cda425
equal deleted inserted replaced
694:260b05585dc3 695:1eaeee12c3d1
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 
       
     3 <diamonds-build>
       
     4   <schema>10</schema>
       
     5   
       
     6 <#assign raptor_errors=0/>
       
     7 <#assign raptor_warnings=0/>
       
     8 <#list raptor_summary as raptor_item>
       
     9 <#if raptor_item.category = "raptor_error">
       
    10   <#assign raptor_errors=raptor_errors+1 />
       
    11 <#elseif raptor_item.category = "raptor_warning">
       
    12   <#assign raptor_warnings=raptor_warnings+1 />
       
    13 </#if>
       
    14 </#list>
       
    15 
       
    16   <faults>
       
    17     <total severity="Raptor Errors">${raptor_errors}</total>
       
    18     <total severity="Raptor Warnings">${raptor_warnings}</total>
       
    19     <total severity="Recipes Failed">${ant['sf.job.totalyarperrors']}</total>
       
    20   </faults>
       
    21   
       
    22   <files>
       
    23     <file>
       
    24       <type>log</type>
       
    25       <name>BRAG Summary</name>
       
    26       <url>file:///${ant['sf.spec.publish.networkdrive']}\${ant['sf.spec.job.name']}\builds\${ant['sf.spec.job.codeline']}\${ant['build.id']}\summary\_brag.xml</url>
       
    27     </file>
       
    28     <file>
       
    29       <type>log</type>
       
    30       <name>Raptor summary</name>
       
    31       <url>file:///${ant['sf.spec.publish.networkdrive']}\${ant['sf.spec.job.name']}\builds\${ant['sf.spec.job.codeline']}\${ant['build.id']}\logs\raptorbits\summary.csv</url>
       
    32     </file>
       
    33     <#list files as f>
       
    34     <file>
       
    35       <type>log</type>
       
    36       <name>${f.name}</name>
       
    37       <url>file:///${f.path}</url>
       
    38     </file>
       
    39     </#list>
       
    40    </files>
       
    41   
       
    42 </diamonds-build>