From 1e930e00df73337ea75d8fe8d9caa38e3d7a792a Mon Sep 17 00:00:00 2001 From: Martin Reinhardt Date: Mon, 8 Aug 2022 10:41:34 +0200 Subject: [PATCH] fix: Jenkins Log Parser Debug Icon not shown see JENKINS-67690 --- .../java/hudson/plugins/logparser/LogParserDisplayConsts.java | 2 +- src/main/java/hudson/plugins/logparser/LogParserWriter.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/hudson/plugins/logparser/LogParserDisplayConsts.java b/src/main/java/hudson/plugins/logparser/LogParserDisplayConsts.java index 21c5468..651f21e 100755 --- a/src/main/java/hudson/plugins/logparser/LogParserDisplayConsts.java +++ b/src/main/java/hudson/plugins/logparser/LogParserDisplayConsts.java @@ -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"); diff --git a/src/main/java/hudson/plugins/logparser/LogParserWriter.java b/src/main/java/hudson/plugins/logparser/LogParserWriter.java index d7fe719..18e5a0f 100755 --- a/src/main/java/hudson/plugins/logparser/LogParserWriter.java +++ b/src/main/java/hudson/plugins/logparser/LogParserWriter.java @@ -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 = "\n"; writer.write(styles); - final String linksStart = "\""\n" + "" + linkListDisplayStr + " (" + linkListCount + ")
\n"