diff --git a/pom.xml b/pom.xml index 869d1da..ea393ec 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.jenkins-ci.plugins plugin - 5.27 + 6.2116.v7501b_67dc517 @@ -29,6 +29,7 @@ ${jenkins.baseline}.3 jenkinsci/${project.artifactId}-plugin false + false diff --git a/src/main/java/com/cloudbees/jenkins/plugins/BitbucketJobProbe.java b/src/main/java/com/cloudbees/jenkins/plugins/BitbucketJobProbe.java index dd8d2e0..f44ffb4 100644 --- a/src/main/java/com/cloudbees/jenkins/plugins/BitbucketJobProbe.java +++ b/src/main/java/com/cloudbees/jenkins/plugins/BitbucketJobProbe.java @@ -28,7 +28,7 @@ import org.springframework.security.core.context.SecurityContext; import org.springframework.security.core.context.SecurityContextHolder; -import org.apache.commons.lang.StringUtils; + import org.eclipse.jgit.transport.RemoteConfig; import org.eclipse.jgit.transport.URIish; import com.google.common.base.Objects; @@ -194,7 +194,7 @@ private boolean match(SCM scm, URIish url, String overrideUrl) { } // needed because bitbucket self hosted does not transfer any host information - if (StringUtils.isEmpty(url.getHost())) { + if (url.getHost() == null || url.getHost().isEmpty()) { urIish = urIish.setHost(url.getHost()); } @@ -253,7 +253,7 @@ private boolean match(SCMSource scm, URIish url) { } // needed because bitbucket self hosted does not transfer any host information - if (StringUtils.isEmpty(url.getHost())) { + if (url.getHost() == null || url.getHost().isEmpty()) { urIish = urIish.setHost(url.getHost()); }