Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-21063] Indicate in icon (or tooltip) if a release build failed.
Failed release build is now indicated in badge/icon as well as tooltip. Also reworked dryrun badge to align. Signed-off-by: Anders Hammar <anders@hammar.net>
- Loading branch information
Showing
7 changed files
with
52 additions
and
15 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
19 changes: 12 additions & 7 deletions
19
src/main/resources/org/jvnet/hudson/plugins/m2release/M2ReleaseBadgeAction/badge.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,8 +1,13 @@ | ||
<j:jelly xmlns:j="jelly:core"> | ||
<j:if test="${it.isDryRun()}"> | ||
<img width="16" height="16" title="${it.tooltipText}" src="${rootURL}/plugin/m2release/img/new-package.png"/> | ||
</j:if> | ||
<j:if test="${!it.isDryRun()}"> | ||
<img width="16" height="16" title="${it.tooltipText}" src="${imagesURL}/16x16/package.png"/> | ||
</j:if> | ||
</j:jelly> | ||
<j:choose> | ||
<j:when test="${it.isFailedBuild()}"> | ||
<img width="16" height="16" title="${it.tooltipText}" src="${rootURL}/plugin/m2release/img/releasebadge-failure.png"/> | ||
</j:when> | ||
<j:when test="${it.isDryRun()}"> | ||
<img width="16" height="16" title="${it.tooltipText}" src="${rootURL}/plugin/m2release/img/releasebadge-dryrun.png"/> | ||
</j:when> | ||
<j:otherwise> | ||
<img width="16" height="16" title="${it.tooltipText}" src="${rootURL}/plugin/m2release/img/releasebadge.png"/> | ||
</j:otherwise> | ||
</j:choose> | ||
</j:jelly> |
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.