Skip to content

Commit

Permalink
Move set version
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Sep 10, 2024
1 parent e4ce2d5 commit d8d23b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/jenkins/plugins/jfrog/JfStep.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public void perform(@NonNull Run<?, ?> run, @NonNull FilePath workspace, @NonNul
try (ByteArrayOutputStream taskOutputStream = new ByteArrayOutputStream()) {
JfTaskListener jfTaskListener = new JfTaskListener(listener, taskOutputStream);
Launcher.ProcStarter jfLauncher = setupJFrogEnvironment(run, env, launcher, jfTaskListener, workspace, jfrogBinaryPath, isWindows);
this.currentCliVersion = getJfrogCliVersion(jfLauncher);
// Running the 'jf' command
int exitValue = jfLauncher.cmds(builder).join();
if (exitValue != 0) {
Expand Down Expand Up @@ -171,6 +170,7 @@ public Launcher.ProcStarter setupJFrogEnvironment(Run<?, ?> run, EnvVars env, La
logIfNoToolProvided(env, listener);
configAllServers(jfLauncher, jfrogBinaryPath, isWindows, run.getParent());
}
this.currentCliVersion= getJfrogCliVersion(jfLauncher);
return jfLauncher;
}

Expand Down

0 comments on commit d8d23b0

Please sign in to comment.