Skip to content

Commit 2953704

Browse files
authored
Revert "[JENKINS-72450] Support alternate ssh implementations on Windows" (#1717)
Windows OpenSSH hangs during `git fetch` when used from a Jenkins agent started using the "SSH launcher" to connect to the Windows OpenSSH server on Windows 10 and Windows 11. Notes on the testing are in issue: * #1715 Reopens issue: * #1668 Reverts pull request: * #1706 Testing done: * Confirmed that the hang during git fetch is resolved * Confirmed that automated tests pass This reverts commit cd34771.
1 parent 9ae2719 commit 2953704

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2626,15 +2626,6 @@ public File getSSHExecutable() {
26262626
return sshexe;
26272627
}
26282628

2629-
// Check for ssh.exe on the system PATH (supports Microsoft OpenSSH and other alternate implementations)
2630-
String sshPath = getPathToExe("ssh");
2631-
if (sshPath != null) {
2632-
sshexe = new File(sshPath);
2633-
if (sshexe.exists()) {
2634-
return sshexe;
2635-
}
2636-
}
2637-
26382629
// Check Program Files
26392630
sshexe = getFileFromEnv("ProgramFiles", "\\Git\\bin\\ssh.exe");
26402631
if (sshexe != null && sshexe.exists()) {

0 commit comments

Comments
 (0)