Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
-
ssh-slaves-1.31.7
Description
some cases that Java is in the path show the warning about java is not in the path.
Attachments
Issue Links
- causes
-
JENKINS-65148 Incorrect warning for guessed Java path
-
- Closed
-
- is caused by
-
JENKINS-64420 Deprecated javaVersionChecker
-
- Closed
-
- links to
I suggest adding a check if java is in the path in SSHLauncher.launch() before JavaVersionChecker is used. If java is not in the path, emit the warning log message. But you still need to use JavaVersionChecker to keep the current guess java behavior. (The warning log in JavaVersionChecker should then be removed.)