common/build.xml
changeset 1167 18bce39467dc
parent 1166 ed7be4dda2ab
child 1168 fab4ba9e8d93
equal deleted inserted replaced
1166:ed7be4dda2ab 1167:18bce39467dc
   301           <echo message="Save Diamonds build id value (${diamonds.build.id}) in a file"/>
   301           <echo message="Save Diamonds build id value (${diamonds.build.id}) in a file"/>
   302           <echo message="diamonds.build.id=${diamonds.build.id}" file="${build.log.dir}/diamonds_build_id.properties"/>
   302           <echo message="diamonds.build.id=${diamonds.build.id}" file="${build.log.dir}/diamonds_build_id.properties"/>
   303         </then>
   303         </then>
   304       </if>
   304       </if>
   305       
   305       
       
   306       <!-- Supply build-start info in a BIT file -->
   306       <tstamp>
   307       <tstamp>
   307         <format property="time.now" pattern="yyyy-MM-dd HH:mm:ss" locale="en,UK"/>
   308         <format property="time.now" pattern="yyyy-MM-dd HH:mm:ss" locale="en,UK"/>
   308       </tstamp>
   309       </tstamp>
   309 
       
   310       <echo message="build_id_string&#x0009;${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
   310       <echo message="build_id_string&#x0009;${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
   311       <echo message="package&#x0009;${sf.spec.job.name}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
   311       <echo message="package&#x0009;${sf.spec.job.name}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
   312       <echo message="platform&#x0009;${sf.spec.job.codeline}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
   312       <echo message="platform&#x0009;${sf.spec.job.codeline}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
   313       <echo message="started&#x0009;${time.now}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
   313       <echo message="started&#x0009;${time.now}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
   314       <echo message="creator&#x0009;${env.USERNAME}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
   314       <echo message="creator&#x0009;${env.USERNAME}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
   343             <arg value="--tags=${sf.diamonds.tags}"/>
   343             <arg value="--tags=${sf.diamonds.tags}"/>
   344             <arg value="--output=${build.drive}/output/logs/sf-diamonds-tag-build.xml"/>
   344             <arg value="--output=${build.drive}/output/logs/sf-diamonds-tag-build.xml"/>
   345           </exec>
   345           </exec>
   346         </then>
   346         </then>
   347       </if>
   347       </if>
       
   348       <!-- Supply labels info to the BIT file -->
       
   349       <for list="${sf.spec.publish.diamonds.tag}" param="label">
       
   350         <sequential>
       
   351           <echo message="label&#x0009;@{label}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
       
   352         </sequential>
       
   353       </for>
   348     </target>
   354     </target>
   349     
   355     
   350     <target name="sf-record-proj-conf-bom">
   356     <target name="sf-record-proj-conf-bom">
   351         <!-- create BOM dir -->
   357         <!-- create BOM dir -->
   352         <mkdir dir="${build.drive}/output/logs/BOM"/>
   358         <mkdir dir="${build.drive}/output/logs/BOM"/>