common/build.postbuild.xml
changeset 599 27e421bea313
parent 592 85da6704f82d
child 600 01511de51fcd
equal deleted inserted replaced
598:8d55bb26ab6f 599:27e421bea313
   509         <if>
   509         <if>
   510             <istrue value="${sf.spec.publish.enable}"/>
   510             <istrue value="${sf.spec.publish.enable}"/>
   511             <then>
   511             <then>
   512                 <!-- Try to obtain the diamonds ID for this build -->
   512                 <!-- Try to obtain the diamonds ID for this build -->
   513                 <if>
   513                 <if>
   514                     <isset property="diamonds.build.id"/>
   514                     <not><isset property="diamonds.build.id"/></not>
   515                     <else>
   515                     <then>
   516                         <property file="${build.log.dir}/diamonds.build.id.properties"/> <!-- This will fail silently -->
   516                         <property file="${build.log.dir}/diamonds_build_id.properties"/> <!-- This will fail silently -->
   517                     </else>
   517                     </then>
   518                 </if>
   518                 </if>
   519                 <if>
   519                 <if>
   520                     <isset property="diamonds.build.id"/>
   520                     <isset property="diamonds.build.id"/>
   521                     <then>
   521                     <then>
   522                         <!-- Send the data to the server -->
   522                         <!-- Send the data to the server -->
   523                         <exec executable="python">
   523                         <exec executable="python">
   524                             <arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/>
   524                             <arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/>
   525                             <arg value="-s"/>
   525                             <arg value="-s"/>
   526                             <arg value="${diamonds.host}"/>
   526                             <arg value="${diamonds.host}"/>
   527                             <arg value="-u"/>
   527                             <arg value="-u"/>
   528                             <arg value="/diamonds/builds/${diamonds.build.id}"/>
   528                             <arg value="${diamonds.build.id}"/>
   529                             <arg value="-f"/>
   529                             <arg value="-f"/>
   530                             <arg value="${temp.build.dir}/bragForDiamonds.xml"/>
   530                             <arg value="${temp.build.dir}/bragForDiamonds.xml"/>
   531                         </exec>
   531                         </exec>
   532                     </then>
   532                     </then>
   533                     <else>
   533                     <else>