Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-22388] Possible to move cppcheck summary into main job hudso…
…n page? - Project action updated to be standard Action instead of ProminentProjectAction. - Icon from project action is now displayed only in the main menu on the left so correct 24px icon is used instead of 48px one. The larger icon was required by ProminentProjectAction that was rendered on top of the main page. - Project action is now able to provide last build action. It is used in new jobMain.jelly that renders the statistics in the project action page. - Build action summary uses urlName and displayName instead of the hardcoded strings.
- Loading branch information
1 parent
2cf3146
commit 5b3b675
Showing
4 changed files
with
29 additions
and
4 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
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
15 changes: 15 additions & 0 deletions
15
src/main/resources/org/jenkinsci/plugins/cppcheck/CppcheckProjectAction/jobMain.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,15 @@ | ||
<j:jelly xmlns:j="jelly:core" xmlns:t="/lib/hudson" xmlns:st="jelly:stapler"> | ||
<table style="margin-left:1em;"> | ||
<t:summary icon="/plugin/cppcheck/icons/cppcheck-48.png"> | ||
<div><a href="${it.urlName}">${it.displayName}</a></div> | ||
|
||
<j:set var="lastBuildAction" value="${it.lastFinishedBuildAction}"/> | ||
|
||
<j:if test="${lastBuildAction != null}"> | ||
<j:set var="stat" value="${lastBuildAction.result.statistics}"/> | ||
<j:set var="diff" value="${lastBuildAction.result.diff}"/> | ||
<st:include page="/org/jenkinsci/plugins/cppcheck/CppcheckBuildAction/statistics.jelly"/> | ||
</j:if> | ||
</t:summary> | ||
</table> | ||
</j:jelly> |