Skip to content

Commit

Permalink
[JENKINS-31162] Using Jenkins.RESOURCE_PATH for getIconFilePathPattern()
Browse files Browse the repository at this point in the history
  • Loading branch information
recena committed Mar 23, 2016
1 parent 295c7ef commit 501279b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/model/ExternalJob.java
Expand Up @@ -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) {
Expand Down

0 comments on commit 501279b

Please sign in to comment.