Skip to content
Browse files

Make use of the properly cached static resources.

  • Loading branch information...
1 parent ae8120d commit 53ffd3bd4e78269a8c9c9a786ad0321d7542150d @kohsuke kohsuke committed
3 src/main/java/hudson/plugins/git/util/
@@ -1,5 +1,6 @@
package hudson.plugins.git.util;
+import hudson.Functions;
import hudson.model.AbstractBuild;
import hudson.model.Action;
import hudson.model.Api;
@@ -61,7 +62,7 @@ public String getDisplayName() {
return "Git Build Data";
public String getIconFileName() {
- return "/plugin/git/icons/git-32x32.png";
+ return Functions.getResourcePath()+"/plugin/git/icons/git-32x32.png";
public String getUrlName() {
return "git";
2 src/main/resources/hudson/plugins/git/util/BuildData/summary.jelly
@@ -1,7 +1,7 @@
<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">
- <t:summary icon="/plugin/git/icons/git-48x48.png">
+ <t:summary icon="${resURL}/plugin/git/icons/git-48x48.png">
@ssogabe Jenkins member
ssogabe added a note

Git icon missing on Tomcat. See

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
<b>Revision</b>: ${}
<j:if test="${it.scmName}"> from <b>SCM:</b> ${it.scmName}</j:if>

0 comments on commit 53ffd3b

Please sign in to comment.
Something went wrong with that request. Please try again.