Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIXED JENKINS-8441] There should be a cobertura summary item on the …
…build status page
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/main/resources/hudson/plugins/cobertura/CoberturaBuildAction/summary.jelly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?jelly escape-by-default='true'?> | ||
<j:jelly xmlns:j="jelly:core" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson"> | ||
<t:summary icon="graph.png"> | ||
<div><a href="cobertura/">${%Cobertura Coverage Report}</a></div> | ||
<j:set var="result" value="${it.target}" /> | ||
<j:if test="${result != null}"> | ||
<div style="margin: 1ex 0 0 1ex"> | ||
<j:forEach var="metric" items="${result.metrics}"> | ||
<b>${metric.name}</b>: | ||
${result.getCoverage(metric).percentage}% | ||
&nbsp; | ||
</j:forEach> | ||
</div> | ||
</j:if> | ||
</t:summary> | ||
</j:jelly> |
1 change: 1 addition & 0 deletions
1
src/main/resources/hudson/plugins/cobertura/CoberturaBuildAction/summary_ja.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Cobertura\ Coverage\ Report=Cobertura \u30ab\u30d0\u30ec\u30c3\u30b8\u30fb\u30ec\u30dd\u30fc\u30c8 |