Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to configure FishEye to regularly scan and auto-add repos on a git server directory path?

Philip Schlesinger
Contributor
December 17, 2015

Hi!  Our git server and Fisheye application are on two different servers.  We're adding new repositories to the git server.  How do I configure our FishEye server (or addon) to regularly scan for and then automatically add to FishEye any newly-found git server repos?

FYI the Directory Scanning Plugin appears to only work with directories local to the FishEye server.  It does not accept repo locations like "git://gitserver/path/to/repos/i/want/automatically/added"

5 answers

1 accepted

1 vote
Answer accepted
Maciej Swinarski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 4, 2016

Hi Philip,

You could write a simple script that would detect new repositories (on the git server side) and use the FishEye & Crucible REST API to add those repositories: https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:repositories 

Also note there is a python library with FishEye & Crucible Admin Repository client: https://bitbucket.org/atlassian/fecru-rest-examples/src

 

Hope this helps.

mac

Philip Schlesinger
Contributor
January 19, 2016

Thanks!

Christian Jönsson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 26, 2018

This needs to become a supported plugin!

1 vote
Felipe Kraemer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 28, 2015

Hi @Philip Schlesinger,

As the plugin name suggests, the Directory Scanning Plugin only accepts directories. Repository locations that start with "git://" must refer to specific repositories, they cannot refer to a location / directory where you have multiple repositories.

So, only directories that are local to the FishEye server can be configured in that plugin. It does not accept remote repositories. I have tried this myself in a local instance.

In this case, you will need to manually add the repositories in FishEye, one by one.

According to our Git documentation, these are the URLs / Paths accepted:

git://server_name[:port]/path_to_repository
http://server_name[:port]/path_to_repository
https://server_name[:port]/path_to_repository
ssh://server_name[:port]/path_to_repository
file://[hostname]/path_to_repository

As can be seen, you should not have any problems using repository locations following the pattern git://gitserver/username/reponame.git.

If this answer was helpful, please allow me to ask you to mark my answer as accepted in order to have it in the top of the thread, also helping other customers.

Thanks in advance!

Kind regards,
Felipe Kraemer

0 votes
zhipeng515
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 7, 2019

You should be able to mount using sshfs. Try this from the local machine:

sshfs $user@1.2.3.4:/remote/path /local/path
 

0 votes
Philip Schlesinger
Contributor
December 17, 2015

Neither does this: "git@gitserver:path/to/repos/i/want/automatically/added"

0 votes
Philip Schlesinger
Contributor
December 17, 2015

"git@gitserver:/path/to/repos/i/want/automatically/added" doesn't work either

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events