Skip to content

Commit

Permalink
[FIXED JENKINS-21030]
Browse files Browse the repository at this point in the history
look for ssh.exe next to known git.exe
  • Loading branch information
wannessels committed Jan 31, 2014
1 parent 2a1749a commit 602d905
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -1043,6 +1043,10 @@ private File createWindowsGitSSH(File key) throws IOException {
// try the (x86) version for 64-bit Windows builds
sshexe = new File(progFiles + " (x86)" + sshPath);
}
if (!sshexe.exists()) {
// try the ssh.exe next to known git.exe
sshexe = new File(new File(gitExe).getParentFile(), "ssh.exe");
}

if (!sshexe.exists()) {
throw new RuntimeException("git plugin only support official git client http://git-scm.com/download/win");
Expand Down

0 comments on commit 602d905

Please sign in to comment.