Issue #2254 - Send an email to omaha_awips on unit test failures or errors

Former-commit-id: 18f11ce9e0 [formerly 8e0e4e93a094c60c18b28a5ebc49a8f175e6f373]
Former-commit-id: 0973d5018c
This commit is contained in:
Mike Duff 2013-08-14 09:04:00 -05:00
parent cac7a8d0da
commit 6ac90578a1
2 changed files with 31 additions and 5 deletions

View file

@ -117,7 +117,14 @@
</junit>
</forEachTestType>
<!--<fail if="tests.failed" message="Received a FAILED status for one or more test results!" />-->
<antcall target="send.email"/>
<junitreport todir="${TEST.REPORTS.DIR}">
<fileset dir="${TEST.REPORTS.DIR}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${TEST.REPORTS.DIR}/html"/>
</junitreport>
</target>
<macrodef name="forEachTestType" description="Loops over all requested test types, and performs the passed in action">
@ -131,4 +138,21 @@
</sequential>
</macrodef>
<target name="send.email" depends="mail.check" if="send.mail">
<mail mailhost="localhost" mailport="25" subject="Unit Test Failures">
<from address="jenkins@halfmaen.omaha.us.ray.com" />
<replyto address="steven_l_harris@raytheon.com" />
<to address="omaha_awips@raytheon.com" />
<message>Nightly build has unit test failures. http://awipscm/junit/</message>
</mail>
</target>
<target name="mail.check">
<condition property="send.mail">
<and>
<isset property="tests.failed" />
<isset property="jenkins.build" />
</and>
</condition>
</target>
</project>

View file

@ -12,3 +12,5 @@ fi
export ANT_OPTS="-XX:PermSize=${INITIAL_PERMGEN_SIZE} -XX:MaxPermSize=${MAX_PERMGEN_SIZE} $*"
ant
sudo rsync -rugl tmp/test-reports/html/* root@awipscm:/var/www/html/junit