Skip to content

Commit

Permalink
Change debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Jan 8, 2025
1 parent f5419a8 commit 4a36037
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/main/java/io/jenkins/plugins/jfrog/JfStep.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,17 +226,13 @@ public boolean isPasswordStdinSupported(FilePath workspace, EnvVars env, Launche

boolean isPluginLauncher = launcher.getClass().getName().contains("org.jenkinsci.plugins");
if (isPluginLauncher) {
buildInfoLog.info("Launcher is a plugin launcher. Password stdin is not supported.");
buildInfoLog.debug("Password stdin is not supported,Launcher is a plugin launcher.");
return false;
}
Launcher.ProcStarter procStarter = launcher.launch().envs(env).pwd(workspace);
Version currentCliVersion = getJfrogCliVersion(procStarter, jfrogBinaryPath);
boolean supported = currentCliVersion.isAtLeast(MIN_CLI_VERSION_PASSWORD_STDIN);

buildInfoLog.info("JFrog CLI version: " + currentCliVersion);
buildInfoLog.info("Password stdin supported: " + supported);

return supported;
buildInfoLog.debug("Password stdin is supported");
return currentCliVersion.isAtLeast(MIN_CLI_VERSION_PASSWORD_STDIN);
}

/**
Expand Down

0 comments on commit 4a36037

Please sign in to comment.