common/build.postbuild.xml
changeset 685 b4b3727007b2
parent 684 6d65abb8bba1
parent 681 eeab5a04dc46
child 695 1eaeee12c3d1
child 698 382728cd25d2
equal deleted inserted replaced
684:6d65abb8bba1 685:b4b3727007b2
    43                 <!-- Generate reports to compare this build to a previous one -->
    43                 <!-- Generate reports to compare this build to a previous one -->
    44                 <runtarget target="sf-compare-to-baseline"/>
    44                 <runtarget target="sf-compare-to-baseline"/>
    45               </then>
    45               </then>
    46             </if>
    46             </if>
    47         </parallel>
    47         </parallel>
    48         
    48 
       
    49         <!-- Generate release_metadata entries for the md5 zips -->
       
    50         <antcall target="sf-zip-content">
       
    51             <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
       
    52             <param name="zip.target.name" value="bin-just-metadata" />
       
    53         </antcall>
       
    54  
    49         <!-- Launch smoketest -->
    55         <!-- Launch smoketest -->
    50         <if><istrue value="${sf.spec.test.sendpkg.enable}"/>
    56         <if><istrue value="${sf.spec.test.sendpkg.enable}"/>
    51             <then>
    57             <then>
    52                 <runtarget target="sf-build-smoketestpkg"/>
    58                 <runtarget target="sf-build-smoketestpkg"/>
    53                 <runtarget target="sf-send-testpkg"/>
    59                 <runtarget target="sf-send-testpkg"/>
    61             </then>
    67             </then>
    62         </if>
    68         </if>
    63 
    69 
    64         <!-- Zip up all the logs -->
    70         <!-- Zip up all the logs -->
    65         <runtarget target="sf-zip-logs"/>
    71         <runtarget target="sf-zip-logs"/>
       
    72         <runtarget target="sf-brag-to-diamonds"/>
    66 
    73 
    67         <!-- Publish logs/reports -->
    74         <!-- Publish logs/reports -->
    68         <if>
    75         <if>
    69             <istrue value="${sf.spec.publish.enable}" />
    76             <istrue value="${sf.spec.publish.enable}" />
    70             <then>
    77             <then>
    75     </target>
    82     </target>
    76 
    83 
    77     <target name="sf-tag-hg-code">
    84     <target name="sf-tag-hg-code">
    78         <property name="sf.tagafterbuild.tag" value="${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}"/>
    85         <property name="sf.tagafterbuild.tag" value="${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}"/>
    79         <fmpp sourceFile="${sf.common.config.dir}/templates/tag-hg-code.ant.xml.ftl"
    86         <fmpp sourceFile="${sf.common.config.dir}/templates/tag-hg-code.ant.xml.ftl"
    80               outputFile="${sf.common.config.dir}/generated/tag-hg-code.ant.xml">
    87               outputFile="${temp.build.dir}/tag-hg-code.ant.xml">
    81             <data expandProperties="yes">
    88             <data expandProperties="yes">
    82                 ant: antProperties()
    89                 ant: antProperties()
    83                 data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
    90                 data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
    84             </data>
    91             </data>
    85         </fmpp>
    92         </fmpp>
    86         <ant antfile="${sf.common.config.dir}/generated/tag-hg-code.ant.xml"/>
    93         <ant antfile="${temp.build.dir}/tag-hg-code.ant.xml"/>
    87     </target>
    94     </target>
    88 
    95 
    89     <target name="sf-run-evalid" >
    96     <target name="sf-run-evalid" >
    90         <delete dir="${build.drive}/output/md5"/>
    97         <delete dir="${build.drive}/output/md5"/>
    91         <mkdir  dir="${build.drive}/output/md5"/>
    98         <mkdir  dir="${build.drive}/output/md5"/>
   191         <!-- package MD5s directly into epoc32/relinfo location so that its usable out-of-the-box -->
   198         <!-- package MD5s directly into epoc32/relinfo location so that its usable out-of-the-box -->
   192     		<mkdir dir="${build.output.dir}/zips/release"/> <!-- Hack to prevent non-existing release dir -->
   199     		<mkdir dir="${build.output.dir}/zips/release"/> <!-- Hack to prevent non-existing release dir -->
   193         <zip destfile="${build.output.dir}/zips/release/build_md5.zip">
   200         <zip destfile="${build.output.dir}/zips/release/build_md5.zip">
   194             <zipfileset dir="${build.drive}/output/md5/" prefix="epoc32/relinfo"/>
   201             <zipfileset dir="${build.drive}/output/md5/" prefix="epoc32/relinfo"/>
   195         </zip>
   202         </zip>
   196         <!-- Generate release_metadata entries for the above zips -->
       
   197         <antcall target="sf-zip-content">
       
   198             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
       
   199             <param name="zip.target.name" value="bin-just-metadata" />
       
   200         </antcall>
       
   201     </target>    
   203     </target>    
   202     
   204     
   203     <target name="sf-package-binary" depends="sf-package-postbuild-rnd">
   205     <target name="sf-package-binary" depends="sf-package-postbuild-rnd">
   204         <!-- Warning: Reverting to using the He zipper will also revert to a single zip for the binaries:
   206         <!-- Warning: Reverting to using the He zipper will also revert to a single zip for the binaries:
   205              would need to update the template and possibly the script that populates it -->
   207              would need to update the template and possibly the script that populates it -->
   206         <!--antcall target="sf-zip-content">
   208         <!--antcall target="sf-zip-content">
   207             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   209             <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
   208             <param name="zip.target.name" value="bin" />
   210             <param name="zip.target.name" value="bin" />
   209         </antcall-->
   211         </antcall-->
   210         <parallel>
   212         <parallel>
   211             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
   213             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
   212                 <arg value="a"/>
   214                 <arg value="a"/>
   239                 <arg value="epoc32\release\armv5\"/>
   241                 <arg value="epoc32\release\armv5\"/>
   240             </exec>
   242             </exec>
   241         </parallel>
   243         </parallel>
   242         <!-- Generate release_metadata entries for the above zips -->
   244         <!-- Generate release_metadata entries for the above zips -->
   243         <antcall target="sf-zip-content">
   245         <antcall target="sf-zip-content">
   244             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   246             <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
   245             <param name="zip.target.name" value="bin-just-metadata" />
   247             <param name="zip.target.name" value="bin-just-metadata" />
   246         </antcall>
   248         </antcall>
   247     </target>
   249     </target>
   248 
   250 
   249     <target name="sf-package-postbuild-rnd" >
   251     <target name="sf-package-postbuild-rnd" >
   250         <antcall target="sf-zip-content">
   252         <antcall target="sf-zip-content">
   251             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   253             <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
   252             <param name="zip.target.name" value="rnd-postbuild" />
   254             <param name="zip.target.name" value="rnd-postbuild" />
   253         </antcall>
   255         </antcall>
   254     </target>
   256     </target>
   255 
   257 
   256     <target name="sf-package-tools" >
   258     <target name="sf-package-tools" >
   260             <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   262             <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   261             <arg value="${build.drive}/output/zips/release/tools_epoc.zip"/> 
   263             <arg value="${build.drive}/output/zips/release/tools_epoc.zip"/> 
   262             <arg value="epoc32/tools"/>
   264             <arg value="epoc32/tools"/>
   263         </exec>
   265         </exec>
   264         <antcall target="sf-zip-content">
   266         <antcall target="sf-zip-content">
   265             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   267             <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
   266             <param name="zip.target.name" value="tools" />
   268             <param name="zip.target.name" value="tools" />
   267         </antcall>
   269         </antcall>
   268     </target>
   270     </target>
   269     
   271     
   270     <target name="sf-package-validate">
   272     <target name="sf-package-validate">
   515 	  </exec>
   517 	  </exec>
   516     </target>    
   518     </target>    
   517 
   519 
   518     <target name="sf-brag-to-diamonds">
   520     <target name="sf-brag-to-diamonds">
   519         <!-- Merge all our bits of XML together -->
   521         <!-- Merge all our bits of XML together -->
   520         <exec executable="perl" output="${build.log.dir}/summary/_BRAG.xml">
   522         <exec executable="perl" output="${build.log.dir}/summary/_BRAG.xml" logError="true">
   521             <arg value="${sf.common.config.dir}/tools/mergeXML.pl"/>
   523             <arg value="${sf.common.config.dir}/tools/mergeXML.pl"/>
   522             <arg value="--xsl=brag.xsl"/>
   524             <arg value="--xsl=brag.xsl"/>
   523             <arg value="--merge=buildStatus,phase(name),step(name),failures(level)"/>
   525             <arg value="--merge=buildStatus,phase(name),step(name),failures(level)"/>
   524             <arg value="${build.log.dir}/summary/*?_BRAG.xml"/>
   526             <arg value="${build.log.dir}/summary/*?_BRAG.xml"/>
   525         </exec>
   527         </exec>
   631                 <zip destfile="${build.output.dir}/zips/release/build_BOM.zip">
   633                 <zip destfile="${build.output.dir}/zips/release/build_BOM.zip">
   632                     <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/>
   634                     <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/>
   633                     <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/>
   635                     <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/>
   634                 </zip>
   636                 </zip>
   635                 <antcall target="sf-zip-content">
   637                 <antcall target="sf-zip-content">
   636                     <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   638                     <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
   637                     <param name="zip.target.name" value="info-just-metadata" />
   639                     <param name="zip.target.name" value="info-just-metadata" />
   638                 </antcall>
   640                 </antcall>
   639             </then>
   641             </then>
   640         </if>
   642         </if>
   641      </target>
   643      </target>