On May 5, 2011, at 7:50 PM, [email protected] wrote:
> On 05/06, Mark Martinec wrote:
>> Thanks, helpful!
>> Worked around it now in Bug 6500 / t/originating_ip_hdr.t
>
> Cool. "make test" and "make disttest" are both passing here now.
>
> Jenkins is quite a lot less self explanatory than it could be.
We can write a custom jelly script that would give us a lot better information.
I've attached one that I wrote recently that might be useful for someone with
enough access.
Michael
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define">
GENERAL INFO
BUILD ${build.result}
Build URL: ${rooturl}/${build.url}
Project: ${project.name}
Date of build: ${it.timestampString}
Build duration: ${build.durationString}
<j:set var="changeSet" value="${build.changeSet}" />
<j:if test="${changeSet!=null}">
<j:whitespace>CHANGE SET </j:whitespace>
<j:set var="hadChanges" value="false"/>
<j:forEach var="cs" items="${changeSet}" varStatus="loop">
<j:set var="hadChanges" value="true"/>
<j:set var="aUser" value="${cs.hudsonUser}"/>
<j:whitespace>Revision ${cs.commitId?:cs.revision?:cs.changeNumber} by
${aUser!=null?aUser.displayName:cs.author.displayName}:
(${cs.msgAnnotated}) </j:whitespace>
<j:forEach var="p" items="${cs.affectedFiles}">
<j:whitespace> change: ${p.editType.name} ${p.path} </j:whitespace>
</j:forEach>
</j:forEach>
<j:if test="${!hadChanges}">
<j:whitespace>No changes </j:whitespace>
</j:if>
</j:if>
<!-- JUNIT TEMPLATE -->
<j:set var="junitResultList" value="${it.JUnitTestResult}" />
<j:if test="${junitResultList.isEmpty()!=true}">
Unit Test Results
<j:forEach var="junitResult" items="${it.JUnitTestResult}">
<j:forEach var="packageResult"
items="${junitResult.getChildren()}">
Failed: ${packageResult.getFailCount()} test(s), Passed:
${packageResult.getPassCount()} test(s), Skipped:
${packageResult.getSkipCount()} test(s), Total:
${packageResult.getPassCount()+packageResult.getFailCount()+packageResult.getSkipCount()}
Test(s)<j:forEach var="failed_test" items="${packageResult.getFailedTests()}">
Failed: ${failed_test.getFullName()}
${failed_test.getStdout()}
</j:forEach>
</j:forEach>
</j:forEach>
</j:if>
</j:jelly>