Skip to content
Permalink
Browse files

JENKINS-43538 API change: remove getTestUrl (#5)

  • Loading branch information...
i386 committed Apr 13, 2017
1 parent 0e12d95 commit 9283b505e5825aa6709f364ef28b43b41f096dd7
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 9283b50

Please sign in to comment.
You can’t perform that action at this time.