Skip to content
Permalink
Browse files
[JENKINS-31162] Using Jenkins.RESOURCE_PATH for getIconFilePathPattern()
  • Loading branch information
recena committed Mar 23, 2016
1 parent 295c7ef commit 501279b707d314e0b8e6d3908b27c07e63daa830
Showing 1 changed file with 1 addition and 1 deletion.
@@ -152,7 +152,7 @@ public String getDescription() {
* @return A string it represents a URL pattern to get the Item icon in different sizes.
*/
public String getIconFilePathPattern() {
return "plugin/external-monitor-job/images/:size/externaljob.png";
return (Jenkins.RESOURCE_PATH + "/plugin/external-monitor-job/images/:size/externaljob.png").replaceFirst("^/", "");
}

public ExternalJob newInstance(ItemGroup parent, String name) {

0 comments on commit 501279b

Please sign in to comment.