Skip to content
Permalink
Browse files
JENKINS-43538 API change: remove getTestUrl
  • Loading branch information
i386 committed Apr 13, 2017
1 parent 0e12d95 commit 30b0b0da54378f33860d4f0d3c2f8dc68fb82994
Showing with 4 additions and 10 deletions.
  1. +1 −1 pom.xml
  2. +3 −9 src/main/java/org/jenkinsci/plugins/blueoceandisplayurl/BlueOceanDisplayURLImpl.java
@@ -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>
@@ -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;
@@ -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;

0 comments on commit 30b0b0d

Please sign in to comment.