|
Helium API | ||||||
| prev next | frames no frames | ||||||
Location
d:\maintools\sf-config\common\build.postbuild.xml:507:
Conditional execution
No conditions on target execution.
| Name |
|---|
| perl |
| python |
| Name | Edit status |
|---|---|
| User editable properties | |
| Internal properties | |
| build.log.dir | discouraged |
| diamonds.build.id | never |
| diamonds.host | discouraged |
| temp.build.dir | never |
<target name="sf-brag-to-diamonds">
<!-- Merge all our bits of XML together -->
<exec executable="perl" output="${build.log.dir}/summary/_BRAG.xml">
<arg value="${sf.common.config.dir}/tools/mergeXML.pl"/>
<arg value="--xsl=brag.xsl"/>
<arg value="--merge=buildStatus,phase(name),step(name),failures(level)"/>
<arg value="${build.log.dir}/summary/*?_BRAG.xml"/>
</exec>
<!-- Run XSL transform to create file to send to diamonds -->
<java jar="${sf.common.config.dir}/sysdefdowngrade/xalan-j_2_7_1/xalan.jar" fork="true">
<arg value="-IN"/>
<arg value="${build.log.dir}/summary/_BRAG.xml"/>
<arg value="-XSL"/>
<arg value="${sf.common.config.dir}/tools/brag/bragForDiamonds.xsl"/>
<arg value="-OUT"/>
<arg value="${temp.build.dir}/bragForDiamonds.xml"/>
</java>
<if>
<istrue value="${sf.spec.publish.enable}"/>
<then>
<!-- Try to obtain the diamonds ID for this build -->
<if>
<not><isset property="diamonds.build.id"/></not>
<then>
<property file="${build.log.dir}/diamonds_build_id.properties"/> <!-- This will fail silently -->
</then>
</if>
<if>
<isset property="diamonds.build.id"/>
<then>
<!-- Send the data to the server -->
<exec executable="python">
<arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/>
<arg value="-s"/>
<arg value="${diamonds.host}"/>
<arg value="-u"/>
<arg value="${diamonds.build.id}"/>
<arg value="-f"/>
<arg value="${temp.build.dir}/bragForDiamonds.xml"/>
</exec>
</then>
<else>
<echo message="diamonds.build.id is not known - unable to push any build specific information to diamonds server"/>
</else>
</if>
</then>
</if>
</target>
|
Helium API | ||||||
| prev next | frames no frames | ||||||