diff --git a/src/test/java/org/jenkinsci/plugins/workflow/DirectArtifactManagerFactory.java b/src/test/java/org/jenkinsci/plugins/workflow/DirectArtifactManagerFactory.java index 00fedd9b..f02bac99 100644 --- a/src/test/java/org/jenkinsci/plugins/workflow/DirectArtifactManagerFactory.java +++ b/src/test/java/org/jenkinsci/plugins/workflow/DirectArtifactManagerFactory.java @@ -102,7 +102,7 @@ public DirectArtifactManagerFactory() throws Exception { }). create(); server.start(); - baseURL = new URL("http://" + server.getInetAddress().getHostName() + ":" + server.getLocalPort() + "/"); + baseURL = new URL("http", server.getInetAddress().getHostName(), server.getLocalPort(), "/"); LOGGER.log(Level.INFO, "Mock server running at {0}", baseURL); }