This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[FIXED JENKINS-17958] Fixed navigation to duplications.
- Loading branch information
Showing
9 changed files
with
161 additions
and
175 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
rm -rf $JENKINS_HOME/plugins/analysis-core* | ||
rm -rf $JENKINS_HOME/plugins/dry* | ||
|
||
mvn clean install | ||
cp -f target/analysis-core.hpi $JENKINS_HOME/plugins/ | ||
cp -f target/dry.hpi $JENKINS_HOME/plugins/ | ||
|
||
cd $JENKINS_HOME | ||
./go.sh |
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
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
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
59 changes: 31 additions & 28 deletions
59
src/main/resources/hudson/plugins/dry/DryTabDetail/dry-details.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 |
---|---|---|
@@ -1,32 +1,35 @@ | ||
<?jelly escape-by-default='true'?> | ||
<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" xmlns:local="local" xmlns:u="/util"> | ||
<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" xmlns:local="local" xmlns:u="/util"> | ||
<st:header name="Content-Type" value="text/html;charset=UTF-8" /> | ||
<j:forEach var="warning" items="${annotations.sortedAnnotations}"> | ||
<j:if test="${!warning.isDerived()}"> | ||
<table class="pane" id="details"> | ||
<tr> | ||
<td class="pane-header"> | ||
<u:sourceLink it="${it}" warning="${warning}" /> | ||
, | ||
${warning.type}, ${%Priority}: ${warning.priority.localizedString} | ||
<j:if test="${h.size2(warning.category) > 0}"> | ||
, ${%Category}: ${warning.category} | ||
</j:if> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="white-space: normal"> | ||
<p> | ||
<b><j:out value="${warning.message}"/></b> | ||
</p> | ||
<p> | ||
<j:out value="${warning.toolTip}"/> | ||
</p> | ||
</td> | ||
</tr> | ||
</table> | ||
</j:if> | ||
<j:invokeStatic var="filtered" className="hudson.plugins.dry.parser.DuplicateCode" | ||
method="filter"> | ||
<j:arg type="java.util.Set" value="${annotations.sortedAnnotations}" /> | ||
</j:invokeStatic> | ||
<j:forEach var="warning" items="${filtered}"> | ||
<table class="pane" id="details"> | ||
<tr> | ||
<td class="pane-header"> | ||
<u:sourceLink it="${it}" warning="${warning}" /> | ||
, | ||
${warning.type}, ${%Priority}: ${warning.priority.localizedString} | ||
<j:if test="${h.size2(warning.category) > 0}"> | ||
, ${%Category}: ${warning.category} | ||
</j:if> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="white-space: normal"> | ||
<p> | ||
<b> | ||
<j:out value="${warning.message}" /> | ||
</b> | ||
</p> | ||
<p> | ||
<j:out value="${warning.toolTip}" /> | ||
</p> | ||
</td> | ||
</tr> | ||
</table> | ||
</j:forEach> | ||
</j:jelly> |
Oops, something went wrong.