Skip to content

Commit

Permalink
JENKINS-43538 API change: remove getTestUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
James Dumay committed Apr 13, 2017
1 parent 0e12d95 commit 30b0b0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -68,7 +68,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>display-url-api</artifactId>
<version>1.1.1</version>
<version>1.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
Expand Down
Expand Up @@ -7,7 +7,6 @@
import hudson.model.FreeStyleProject;
import hudson.model.Job;
import hudson.model.Run;
import hudson.tasks.test.TestResult;
import jenkins.branch.MultiBranchProject;
import jenkins.model.Jenkins;
import org.jenkinsci.plugins.displayurlapi.DisplayURLProvider;
Expand Down Expand Up @@ -94,20 +93,15 @@ public String getJobURL(Job<?, ?> job) {
}
}

@Override
public String getTestUrl(TestResult result) {
return getRunURL(result.getRun()) + "/tests";
}

static boolean isSupported(Run<?, ?> run) {
private static boolean isSupported(Run<?, ?> run) {
return isInstance(run, SUPPORTED_RUNS);
}

static boolean isSupported(Job<?, ?> job) {
private static boolean isSupported(Job<?, ?> job) {
return isInstance(job, SUPPORTED_JOBS);
}

static boolean isInstance(Object o, Set<String> clazzes) {
private static boolean isInstance(Object o, Set<String> clazzes) {
for (String clazz : clazzes) {
if (o != null && o.getClass().getName().equals(clazz)) {
return true;
Expand Down

0 comments on commit 30b0b0d

Please sign in to comment.