common/build.xml
changeset 250 61a7c7fafc30
parent 249 83515a735a11
child 253 02e483ad6786
equal deleted inserted replaced
249:83515a735a11 250:61a7c7fafc30
   386     <!-- package all logs into zipfile before publish -->
   386     <!-- package all logs into zipfile before publish -->
   387     <target name="sf-zip-logs">
   387     <target name="sf-zip-logs">
   388         <if>
   388         <if>
   389             <istrue value="${sf.spec.logs.zip.enable}"/>
   389             <istrue value="${sf.spec.logs.zip.enable}"/>
   390             <then>
   390             <then>
   391                 <property name="temp.log.zip" value="${env.TEMP}/build_logs_${sf.spec.job.name}_${build.number}.zip"/>
   391                 <property name="temp.log.dir" value="${env.TEMP}/${build.id}_output_logs"/>
   392                 <echo message="Zip log requested, zipping logs..."/>
   392                 <echo message="Zip log requested, zipping logs..."/>
   393                 <zip destfile="${temp.log.zip}" basedir="${build.drive}" includes="output/logs/**"/>
   393                 <mkdir dir="${temp.log.dir}"/>
   394                 <move file="${temp.log.zip}" todir="${build.log.dir}" failonerror="false"/>
   394                 <zip destfile="${temp.log.dir}/${build.id}_build_logs.zip" basedir="${build.drive}" includes="output/logs/**"/>
       
   395                 <zip destfile="${temp.log.dir}/${build.id}_BOM.zip" basedir="${build.drive}">
       
   396                     <include name="output/logs/BOM/**"/>
       
   397                     <include name="output/logs/deliverables/**"/>
       
   398                     <include name="output/logs/releaseables/**"/>
       
   399                 </zip>
       
   400                 <move todir="${build.log.dir}">
       
   401                     <fileset dir="${temp.log.dir}"/>
       
   402                 </move>
   395             </then>
   403             </then>
   396         </if>
   404         </if>
   397     </target>
   405     </target>
   398 
   406 
   399     <!-- generate dir list using passed location and name 
   407     <!-- generate dir list using passed location and name