Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fixed JENKINS-21806] Improve ssh.exe finding on Windows with msysgit
Adapt to msysgit installed in non-default locations, and to msysgit alternative configurations as allowed by the msysgit installer. The mssygit installer allows the user to choose to make no changes to the PATH, or to add the "cmd" directory to the PATH, or add the "bin" directory to the PATH. If the user chooses to make no changes to the PATH, then they configure their Jenkins git with the absolute path of the git executable. If the user chooses to add the "cmd" directory to the PATH, then they configure their Jenkins git with the executable as "git", "git.exe", or (with some msysgit versions) "git.cmd". If the user chooses to add the "bin" directory to the PATH, then they configure similarly to the "cmd" directory case. The plugin attempts to handle all those cases correctly. Special thanks to Thiago Zanetti for providing the original code for this fix.
- Loading branch information
1 parent
824d028
commit 9430af7
Showing
2 changed files
with
98 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9430af7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you can see, Java is not my real deal. :) I'll checkout this version and try it here. Thanks!