common/build.postbuild.xml
changeset 491 e73243604097
parent 474 6f15b0257b5c
child 492 8820f5f867f2
equal deleted inserted replaced
490:3bf1f3ae9dea 491:e73243604097
   524         <!-- Code churn -->
   524         <!-- Code churn -->
   525         <!-- TODO? -->
   525         <!-- TODO? -->
   526         <fixcrlf file="${sf.releasenotes.wiki.txt}"/>
   526         <fixcrlf file="${sf.releasenotes.wiki.txt}"/>
   527     </target>
   527     </target>
   528 
   528 
   529     <!-- package all logs into zipfile before publish -->
   529     <!-- package all logs into zipfile for publishing -->
   530     <target name="sf-zip-logs">
   530     <target name="sf-zip-logs">
   531         <if>
   531         <if>
   532             <istrue value="${sf.spec.logs.zip.enable}"/>
   532             <istrue value="${sf.spec.logs.zip.enable}"/>
   533             <then>
   533             <then>
   534                 <property name="temp.log.dir" value="${env.TEMP}/${build.id}_output_logs"/>
   534                 <zip destfile="${build.output.dir}/zips/release/build_logs.zip" basedir="${build.drive}"> 
   535                 <echo message="Zip log requested, zipping logs..."/>
       
   536                 <mkdir dir="${temp.log.dir}"/>
       
   537                 <zip destfile="${temp.log.dir}/build_logs.zip" basedir="${build.drive}"> 
       
   538                     <include name="output/logs/**"/>
   535                     <include name="output/logs/**"/>
   539                     <exclude name="output/logs/BOM/**"/>
   536                     <exclude name="output/logs/BOM/**"/>
   540                     <exclude name="output/logs/deliverables/**"/>
   537                     <exclude name="output/logs/deliverables/**"/>
   541                     <exclude name="output/logs/releaseables/**"/>
   538                     <exclude name="output/logs/releaseables/**"/>
   542                 </zip>
   539                 </zip>
   543                 <!-- workaround for the time when when 'sf-run-analysis-raptor' has not been run -->
   540                 <!-- workaround for the time when when 'sf-run-analysis-raptor' has not been run -->
   544                 <mkdir dir="${build.drive}/output/logs/releaseables"/> 
   541                 <mkdir dir="${build.drive}/output/logs/releaseables"/> 
   545                 <zip destfile="${temp.log.dir}/build_BOM.zip">
   542                 <zip destfile="${build.output.dir}/zips/release/build_BOM.zip">
   546                     <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/>
   543                     <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/>
   547                     <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/>
   544                     <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/>
   548                 </zip>
   545                 </zip>
   549                 <move todir="${build.log.dir}">
       
   550                     <fileset dir="${temp.log.dir}"/>
       
   551                 </move>
       
   552             </then>
   546             </then>
   553         </if>
   547         </if>
   554     </target>    
   548     </target>
   555     
   549     
   556     <target name="sf-publish" depends="prep-publish">
   550     <target name="sf-publish" depends="prep-publish">
   557         <copy todir="${publish.dir}" preservelastmodified="true" failonerror="false">
   551         <copy todir="${publish.dir}" preservelastmodified="true" failonerror="false">
   558            <fileset dir="${build.log.dir}"><include name="*.zip"/></fileset>
   552            <fileset dir="${build.log.dir}"><include name="*.zip"/></fileset>
   559         </copy>
   553         </copy>