From 831c9bb3e7b83203655c828feded906de40d3414 Mon Sep 17 00:00:00 2001 From: delarea Date: Sun, 17 Nov 2024 16:53:37 +0200 Subject: [PATCH] fix test --- src/main/java/io/jenkins/plugins/jfrog/JfStep.java | 2 -- .../io/jenkins/plugins/jfrog/integration/PipelineTestBase.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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);