Skip to content

Commit

Permalink
fix: remove JavaProvider (#541)
Browse files Browse the repository at this point in the history
* fix: remove JavaProvider

* Update revision and compatibleSinceVersion in pom.xml
  • Loading branch information
kuisathaverat authored Dec 23, 2024
1 parent 7f9ef72 commit acc11bd
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 394 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
</licenses>

<properties>
<revision>2</revision>
<revision>3</revision>
<changelist>999999-SNAPSHOT</changelist>
<jenkins.baseline>2.479</jenkins.baseline>
<jenkins.version>${jenkins.baseline}.1</jenkins.version>
<hpi.compatibleSinceVersion>2.0.0</hpi.compatibleSinceVersion>
<hpi.compatibleSinceVersion>3.0.0</hpi.compatibleSinceVersion>
</properties>

<developers>
Expand Down
123 changes: 0 additions & 123 deletions src/main/java/hudson/plugins/sshslaves/DefaultJavaProvider.java

This file was deleted.

80 changes: 0 additions & 80 deletions src/main/java/hudson/plugins/sshslaves/JavaProvider.java

This file was deleted.

149 changes: 0 additions & 149 deletions src/main/java/hudson/plugins/sshslaves/JavaVersionChecker.java

This file was deleted.

10 changes: 2 additions & 8 deletions src/main/java/hudson/plugins/sshslaves/SSHLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -448,15 +448,9 @@ public void launch(final SlaveComputer computer, final TaskListener listener) th
return Boolean.FALSE;
}

String java = null;
String java = "java";
if (StringUtils.isNotBlank(javaPath)) {
java = expandExpression(computer, javaPath);
} else {
checkJavaIsInPath(listener);
//FIXME deprecated on 2020-12-10, it will removed after 2021-09-01
JavaVersionChecker javaVersionChecker = new JavaVersionChecker(computer, listener, getJvmOptions(),
connection);
java = javaVersionChecker.resolveJava();
java = expandExpression(computer, javaPath);
}

copyAgentJar(listener, workingDirectory);
Expand Down
Loading

0 comments on commit acc11bd

Please sign in to comment.