diff --git a/src/main/java/io/jenkins/plugins/jfrog/JfStep.java b/src/main/java/io/jenkins/plugins/jfrog/JfStep.java index 3045e93f..6451fa82 100644 --- a/src/main/java/io/jenkins/plugins/jfrog/JfStep.java +++ b/src/main/java/io/jenkins/plugins/jfrog/JfStep.java @@ -110,8 +110,6 @@ protected String run() throws Exception { // Build the 'jf' command ArgumentListBuilder builder = new ArgumentListBuilder(); - boolean isWindows = !launcher.isUnix(); - String jfrogBinaryPath = getJFrogCLIPath(env, isWindows); builder.add(jfrogBinaryPath).add(args); if (isWindows) { diff --git a/src/test/java/io/jenkins/plugins/jfrog/integration/PipelineTestBase.java b/src/test/java/io/jenkins/plugins/jfrog/integration/PipelineTestBase.java index 8d8c748a..d6cb11b4 100644 --- a/src/test/java/io/jenkins/plugins/jfrog/integration/PipelineTestBase.java +++ b/src/test/java/io/jenkins/plugins/jfrog/integration/PipelineTestBase.java @@ -165,7 +165,7 @@ private void setGlobalConfiguration() throws IOException { // Dummy server to test multiple configured servers. // The dummy server should be configured first to ensure the right server is being used (and not the first one). // platformCred cannot be empty since it is used to config the server. - add(new JFrogPlatformInstance("dummyServerId", "http://not-a-real-platform", platformCred, ARTIFACTORY_URL, "", "")); + add(new JFrogPlatformInstance("dummyServerId", "https://not-a-real-platform", platformCred, ARTIFACTORY_URL, "", "")); add(new JFrogPlatformInstance(TEST_CONFIGURED_SERVER_ID, PLATFORM_URL, platformCred, ARTIFACTORY_URL, "", "")); }}; jfrogBuilder.setJfrogInstances(artifactoryServers);