Skip to content

Commit

Permalink
fix: Jenkins Log Parser Debug Icon not shown
Browse files Browse the repository at this point in the history
see JENKINS-67690
  • Loading branch information
hypery2k committed Aug 8, 2022
1 parent f5a64ba commit 1e930e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public LogParserDisplayConsts() {
iconTable.put(LogParserConsts.ERROR, "red.gif");
iconTable.put(LogParserConsts.WARNING, "yellow.gif");
iconTable.put(LogParserConsts.INFO, "blue.gif");
iconTable.put(LogParserConsts.DEBUG, "grey.gif");
iconTable.put(LogParserConsts.DEBUG, "gray.gif");

// How to display in link summary html
linkListDisplay.put(LogParserConsts.ERROR, "Error");
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/hudson/plugins/logparser/LogParserWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private static void writeLinks(final BufferedWriter writer,
final String linkListCount = statusCount.get(status).toString();

final String hudsonRoot = Jenkins.get().getRootUrl();
final String iconLocation = String.format("%s/images/16x16/", Functions.getResourcePath());
final String iconLocation = String.format("%s/plugin/log-parser/images/", jenkins.model.Jenkins.RESOURCE_PATH).substring(1);

final String styles =
"<style>\n"
Expand All @@ -130,7 +130,7 @@ private static void writeLinks(final BufferedWriter writer,
+ "</style>\n";
writer.write(styles);

final String linksStart = "<img src=\"" + hudsonRoot + "/" + iconLocation + statusIcon
final String linksStart = "<img src=\"" + hudsonRoot + iconLocation + statusIcon
+ "\" style=\"margin: 2px;\" width=\"24\" alt=\"" + linkListDisplayStr + " Icon\" height=\"24\" />\n"
+ "<a href=\"javascript:toggleList('" + linkListDisplayStr + "')\" target=\"_self\"><STRONG>"
+ linkListDisplayStr + " (" + linkListCount + ")</STRONG></a><br />\n"
Expand Down

0 comments on commit 1e930e0

Please sign in to comment.