Added yarp to diamonds publishing
authorDario Sestito <darios@symbian.org>
Thu, 18 Jun 2009 09:11:23 +0100
changeset 170 4b1e939c052c
parent 169 e7c76e615b76
child 171 7bcb8b1ad9a6
Added yarp to diamonds publishing
common/build.xml
common/common_props.ant.xml
sf-package/package_props.ant.xml
--- a/common/build.xml	Mon Jun 15 15:39:34 2009 +0100
+++ b/common/build.xml	Thu Jun 18 09:11:23 2009 +0100
@@ -28,6 +28,9 @@
     <property name="base_release.path" value="${sf.spec.baseline.location}"/>
     <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/>
     
+    <!-- SF-specific Helium properties not meant to be exposed in the project spec -->
+    <property name="diamonds.listener.configuration.file" location="${sf.common.config.dir}/diamonds/config.xml.ftl"/>
+    
     <!-- import all core HELIUM targets -->
     <import file="${helium.dir}/helium.ant.xml" />
     
@@ -419,7 +422,7 @@
     
     <target name="sf-diamondize-bom">
         <fmpp sourceFile="${sf.common.config.dir}/templates/build-info.xml.ftl"
-              outputFile="${build.drive}/output/logs/BOM/build-info.xml">
+              outputFile="${build.drive}/output/logs/sf-diamondize-bom.xml">
             <data expandProperties="yes">
                 ant: antProperties()
                 config: csv(${build.drive}/output/logs/BOM/config.csv,{separator:',',headers:[loc,dst,rev]})
@@ -620,14 +623,36 @@
       </path>
       <sequential>
         <propertyregex override="yes" property="yarpfile"  input="@{logfile}" regexp=".*[\\|\/](.*)_compile\.log" replace="\1_yarp.csv"/>
+        <propertyregex override="yes" property="yarpfile_short"  input="${yarpfile}" regexp="[^_]*_[^_]*_[^_]*_(.+)_[^_]*_yarp\.csv" replace="YARP_\1"/>
         <echo message="Yarping @{logfile}..."/>
         <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_yarp.log" append="true">
           <arg value="${sf.common.config.dir}/tools/analysis/yarp.pl"/>
           <arg value="@{logfile}"/>
           <arg value="${build.log.dir}/analysis/${yarpfile}"/>
         </exec>
+        <exec executable="cmd" output="${build.drive}/output/logs/analysis/tmp_yarp_files.csv" append="true">
+          <arg value="/c"/>
+          <arg value="echo"/>
+          <arg value="${yarpfile_short},${sf.spec.publish.networkdrive}\${sf.spec.job.name}\builds\${sf.spec.job.codeline}\${build.id}\logs\analysis\${yarpfile}"/>
+        </exec>
       </sequential>
     </for>
+    
+    <!-- fake build results file -->
+    <!-- copy file="D:\zoo\fake_results_file\sf-run-analysis.xml" todir="${build.drive}/output/logs" failonerror="false" verbose="true"/ -->
+    
+    <exec executable="perl" dir="${build.drive}" failonerror="false" outputproperty="sf.job.totalyarperrors">
+      <arg value="${sf.common.config.dir}/tools/analysis/parse_yarp_files.pl"/>
+      <arg value="${build.drive}/output/logs/analysis/tmp_yarp_files.csv"/>
+    </exec>
+    <echo message="Total yarp errors: ${sf.job.totalyarperrors}"/>
+    
+    <fmpp sourceFile="${sf.common.config.dir}/diamonds/sf-run-analysis.xml.ftl" outputFile="${build.drive}/output/logs/sf-run-analysis.xml">
+      <data expandProperties="yes">
+        ant: antProperties()
+        files: csv(${build.drive}/output/logs/analysis/tmp_yarp_files.csv,{separator:',',headers:[name,path]})
+      </data>
+    </fmpp>
 
     </target>
   
--- a/common/common_props.ant.xml	Mon Jun 15 15:39:34 2009 +0100
+++ b/common/common_props.ant.xml	Thu Jun 18 09:11:23 2009 +0100
@@ -47,8 +47,8 @@
     <property name="sf.spec.publish.unpackagedartefacts.enable" value="true"/>
     <property name="sf.spec.publish.packagedartefacts.enable" value="true"/>
     <property name="sf.spec.publish.network.freespace" value="10"/>
-    <property name="sf.spec.publish.networkdrive" value="\\v800008.ad-sfpd.intra\g$\SF_builds"/>
-    <property name="sf.spec.publish.rootdir" value="\\v800008.ad-sfpd.intra\g$\SF_builds"/>
+    <property name="sf.spec.publish.networkdrive" value="\\v800008.ad-sfpd.intra\builds01\SF_builds"/>
+    <property name="sf.spec.publish.rootdir" value="\\v800008.ad-sfpd.intra\builds01\SF_builds"/>
     <property name="sf.spec.publish.diamonds.server" value="v800002.ad-sfpd.intra"/>
     <property name="sf.spec.publish.diamonds.port" value="80"/>
     <property name="sf.spec.publish.diamonds.path" value="/diamonds/builds/"/>
--- a/sf-package/package_props.ant.xml	Mon Jun 15 15:39:34 2009 +0100
+++ b/sf-package/package_props.ant.xml	Thu Jun 18 09:11:23 2009 +0100
@@ -12,9 +12,6 @@
   
   <property name="sf.spec.sbs.config" value="winscw"/>
   
-  <!-- property name="sf.spec.publish.networkdrive" value="\\sym-build01\f$\SF_builds"/ -->
-  <!-- property name="sf.spec.publish.rootdir" value="\\sym-build01\f$\SF_builds"/ -->
-  
   <property name="sf.spec.logs.raptorfilter.enable" value="false"/>
 
 </project>