Skip to content

Commit

Permalink
Merge pull request #2 from avdv/add-scoverage-icon
Browse files Browse the repository at this point in the history
Add scoverage icon to project and build actions
  • Loading branch information
shanbin committed Mar 20, 2015
2 parents 94eedc0 + 50e2941 commit a8ae4f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.jenkinsci.plugins.scoverage;

import hudson.FilePath;
import hudson.Functions;
import hudson.model.AbstractBuild;
import hudson.model.Action;
import hudson.model.DirectoryBrowserSupport;
Expand Down Expand Up @@ -28,7 +29,7 @@ public ScoverageBuildAction(AbstractBuild<?, ?> build, FilePath buildPath, Scove
}

public String getIconFileName() {
return "";
return Functions.getResourcePath()+"/plugin/scoverage/images/scoverage.png";
}

public String getDisplayName() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.jenkinsci.plugins.scoverage;

import hudson.FilePath;
import hudson.Functions;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.Action;
Expand All @@ -22,7 +23,7 @@ public ScoverageProjectAction(AbstractProject<?, ?> project) {
}

public String getIconFileName() {
return "";
return Functions.getResourcePath()+"/plugin/scoverage/images/scoverage.png";
}

public String getDisplayName() {
Expand Down
Binary file added src/main/webapp/images/scoverage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a8ae4f5

Please sign in to comment.