Page MenuHomePhabricator

wikimedia-jenkins.template

Authored By
bzimport
Nov 22 2014, 2:12 AM
Size
3 KB
Referenced Files
None
Subscribers
None

wikimedia-jenkins.template

<STYLE>
BODY, TABLE, TD, TH, P {
font-family:Verdana,Helvetica,sans serif;
font-size:11px;
color:black;
}
h1 { color:black; }
h2 { color:black; }
h3 { color:black; }
TD.bg1 { font-size:120% }
TD.bg2 { font-size:110% }
TD.bg3 { }
TD.test_passed { color:blue; }
TD.test_failed { color:red; }
TD.console { font-family:Courier New; }
</STYLE>
<BODY>
<TABLE>
<TR><TD align="left"><IMG SRC="${rooturl}static/e59dfe28/images/48x48/<%= build.result.toString() == 'SUCCESS' ? "blue.gif" : build.result.toString() == 'FAILURE' ? 'red.gif' : 'yellow.gif' %>" /><B style="font-size: 200%;"> ${project.name} Build #<A href="${rooturl}${build.url}">${build.number}</A> (${it.timestampString})</B></TD></TR>
</TABLE>
<TABLE>
<% if(build.description != null) { %>
<TR><TD>Description:</TD><TD>${build.description}</TD></TR>
<% } %>
</TABLE>
<TABLE>
<% if(build.getBuiltOnStr() != "") { %>
<TR><TD>Took ${build.durationString} on ${build.getBuiltOnStr()}</TD></TR>
<% } else { %>
<TR><TD>Took ${build.durationString} on master</TD></TR>
<% } %>
</TABLE>
<BR/>
<TABLE>
<TR><TD><img height="48" style="margin-right:1em" alt="" width="48" src="${rooturl}static/995b2914/images/48x48/notepad.png"></TD>
<TD style="vertical-align:middle">
<!-- CHANGE SET -->
<% def changeSet = build.getChangeSet()
if(changeSet != null) {
def hadChanges = false
def hasHeader = false %>
<B>Changes</B>
<TABLE>
<% changeSet.eachWithIndex() { cs, index ->
hadChanges = true %>
<TR><TD>${cs.getMsg()} (<A href="${rooturl}${build.url}changes#detail${index}">detail</A>)
</TD></TR>
<% } %>
<% if(!hadChanges) { %>
<TR><TD>No changes.</TD></TR>
<% } %>
</TABLE>
<% } %>
</TD>
</TR>
<TR><TD><img height="48" style="margin-right:1em" alt="" width="48" src="${rooturl}static/995b2914/images/48x48/orange-square.png"></TD>
<TD style="vertical-align:middle">
<!-- CAUSE SET -->
<% def causeSet = build.getCauses() %>
<B>Cause</B>
<TABLE>
<% causeSet.each() { cs -> %>
<TR>
<TD>${cs.getShortDescription()}</TD>
</TR>
<% } %>
<% if(causeSet.size() == 0) { %>
<TR><TD colspan="2">No cause. (Tux did it!)</TD></TR>
<% } %>
</TABLE>
</TD>
</TR>
<TR>
<TD><img height="48" style="margin-right:1em" alt="" width="48" src="${rooturl}static/995b2914/plugin/git/icons/git-48x48.png"></TD>
<TD style="vertical-align:middle"><B>Revision</B>: ${build.getEnvironment()["GIT_COMMIT"]}</TD>
</TR>
<TR>
<!-- JUnit TEMPLATE -->
<% def junitResultList = it.JUnitTestResult
if (junitResultList.size() > 0) { %>
<TD><img height="48" style="margin-right:1em" alt="" width="48" src="${rooturl}static/995b2914/images/48x48/clipboard.png"></TD>
<TD><A href="${rooturl}${build.url}testReport/"><B>Test Result</B></A> (${build.testResultAction.getFailCount()} failed, ${build.testResultAction.getSkipCount()} skipped)
<% it.JUnitTestResult.each { junitResult ->
junitResult.getChildren().each { packageResult -> %>
<OL>
<% packageResult.getFailedTests().each{ failed_test -> %>
<LI><A href="${rooturl}${build.url}testReport${failed_test.getUrl()}">${failed_test.getFullName()}</A></LI>
<% } %>
</OL>
<% }
} %>
</TD>
<% } %>
</TR>
<!-- CONSOLE OUTPUT -->
<% if(build.result==hudson.model.Result.FAILURE) { %>
<TR><TD><img height="48" style="margin-right:1em" alt="" width="48" src="${rooturl}/static/995b2914/images/48x48/terminal.png"></TD>
<TD style="vertical-align:middle">
<TABLE width="100%" cellpadding="0" cellspacing="0">
<TR><TD><A href="${rooturl}${build.url}console/"><B>Console Output:</B></A></TD></TR>
<% build.getLog(100).each() { line -> %>
<TR><TD class="console">${org.apache.commons.lang.StringEscapeUtils.escapeHtml(line)}</TD></TR>
<% } %>
</TABLE>
<BR/>
</TD>
</TR>
<% } %>
</TABLE>
</BODY>

File Metadata

Mime Type
text/html
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
11404
Default Alt Text
wikimedia-jenkins.template (3 KB)

Event Timeline