Use Fisheye command line to automate rescan on Subversion commit message edit

Since you can't comment on the documentation anymore (boo!), I'd note that if your Subversion repository allows changes to unversioned properties (e.g. edit commit messages), you can have Fisheye automatically rescan the change via a Post-revision Property Change Hook utilizing a Fisheye command-line option

Our Fisheye and Subversion are co-hosted on a Windows server and the FISHEYE_HOME environment variable is configured, so the below works for us:

 

@ECHO OFF

setlocal

set REPOS=%1

set REV=%2

set PROJ=RepoName

set FE="%FISHEYE_HOME%\bin\fisheyectl.bat"

%FE% rescan %PROJ% %REV% %REV% >&2

exit

2 answers

1 accepted

And since Atlassian Answers wasn't really designed work as a user suggestion forum, which is why I really miss the ability to allow comments on documentation, I must mark my own "question" as "answered". 

0 vote
Lukasz Pater Atlassian Team Nov 11, 2015

Another approach to doing this would be using the /rest-service-fecru/admin/repositories/{name}/rescan-metadata REST api.

That way you can trigger the scan from any machine that can reach FishEye/Crucible via HTTP, not only from the host that's running it.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

44 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you