The other day a co-worker asked me if we could point our Atlassian FishEye instance at GitHub repositories. I did some poking around and after having a hard time finding any specific instructions in any one place, I decided to write a post about how I made it work.
- Admin access to FishEye.
- Admin access to a GitHub repository.
- Git client and SSH client installed on the FishEye server and available in the PATH.
- Login to FishEye, go to Administration -> Repositories and click "Add Existing...".
- Choose "Git" from the dropdown, give it a name/description and click "Next".
- Grab the SSH url from your repository in GitHub and enter it into the "Repository Location".
Under "Authentication Style", choose "Generate key pair for ssh" and click "Generate".Copy the resulting block of text into your clipboard.Go to your repository in GitHub, go to "Admin" and choose the "Deploy Keys" tab.Click "Add another deploy key", name it "FishEye", paste the block of text into the "Key" field and click "Add Key".Back in FishEye, click "Test Connection" and if all is well, click "Next" and then click "Add".
- Will look something like "firstname.lastname@example.org:ORGANIZATION/REPONAME.git"
You will very quickly start seeing that the GitHub repository is being indexed and when done, you'll be off to the races!