Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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

This needs to become a supported plugin!

1 vote

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

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

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

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

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

ThinkTilt is joining the Atlassian Family!

This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...

468 views 20 24
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you