Issue #2254 - Send an email to omaha_awips on unit test failures or errors
Former-commit-id: 8e0e4e93a094c60c18b28a5ebc49a8f175e6f373
This commit is contained in:
parent
367420ad48
commit
18f11ce9e0
2 changed files with 31 additions and 5 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue