Fisheye Does not sync an added repository from Bitbucket Server on Windows
問題
While on Windows when adding repositories to Fisheye that are hosted in Bitbucket Server automatically through the Bitbucket repositories tab in the Repositories settings section, the repository never seems to sync. When going into the properties of the repository and clicking on the "Test Connection" the following error is received:
Could not find SSH binary on the system path. See https://confluence.atlassian.com/display/FISHEYE/Authentication<br< a="">>
Error testing connection.
Could not find SSH binary on the system path. Seehttps://confluence.atlassian.com/display/FISHEYE/Authentication<br< a="">>at com.atlassian.guava.base.Preconditions.checkNotNull(Preconditions.java:209)
at com.atlassian.fecru.security.SshWrapper.<init>(SshWrapper.java:18)
at com.atlassian.fisheye.dvcs.DvcsScmConfig.createProcessBuilder(DvcsScmConfig.java:172)
at com.atlassian.fisheye.git.GitScmConfig.createProcessBuilder(GitScmConfig.java:132)
at com.atlassian.fisheye.dvcs.DvcsScmConfig.executeCommand(DvcsScmConfig.java:179)
Connection failed.
The following appears in the logs:
2015-12-11 00:00:38,969 ERROR [InitPing2 ios ] fisheye SshKeyManagerImpl-getPathToSshExecutable - Could not find SSH binary on the system path. See https://confluence.atlassian.com/display/FISHEYE/Authentication
診断
環境
- A Fisheye instance connected to a Bitbucket Server instance via an application link
- The Bitbucket repository is added to Fisheye via the Bitbucket repositories tab at
Administration > Repository Settings > Repositories
原因
On Windows, you need to have an OpenSSH binary accessible on your system path for Fisheye to clone repositories over SSH.
ソリューション
The easiest way to achieve this is to select the "Use Git and optional Unix tools from the Windows Command Prompt" option when installing Msysgit, as shown in this screenshot: