This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Including summary.jelly for JacocoBuildAction, which will be presented on build status page - Including JacocoBuildAction.getCoverageRatios to expose coverage ratios to summary.jelly in order to build the table showing coverage sumary for the current build
- Loading branch information
Felipe Brandão
committed
Oct 28, 2015
1 parent
f55ced3
commit 72529df
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
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
17 changes: 17 additions & 0 deletions
17
src/main/resources/hudson/plugins/jacoco/JacocoBuildAction/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,17 @@ | ||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" | ||
xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" | ||
xmlns:f="/lib/form" xmlns:i="jelly:fmt"> | ||
<link rel="stylesheet" href="${rootURL}/plugin/jacoco/css/style.css"/> | ||
<t:summary icon="/plugin/jacoco/icons/jacoco-48x48.png"> | ||
<b>Jacoco - ${%Overall Coverage Summary}</b> | ||
<table class="pane" border="1" style="width: 95%;margin-left: 5%;"> | ||
<j:forEach var="coverageRatio" items="${it.coverageRatios}"> | ||
<tr> | ||
<th style="background-color:#e0e0e0;width:30%">${coverageRatio.key.type}</th> | ||
<td style="width:15%;text-align:center" class="${coverageRatio.value ? 'red':''}">${coverageRatio.key.percentage}%</td> | ||
<td><div class="percentgraph"><div style="width:${100 - coverageRatio.key.percentage}%" class="redbar"></div></div></td> | ||
</tr> | ||
</j:forEach> | ||
</table> | ||
</t:summary> | ||
</j:jelly> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.