Automating Administrative Actions in Fisheye
With some command line scripting and a tool like wget, and Live HTTP Headers for firefox you can automate actions. In this example, Fisheye will automatically rescan revision properties of an SVN when the commit message is updated to reference a new Jira issue.
- Enable live HTTP headers in firefox, then perform the action you want to perform automatically via the Fisheye Adminstration UI.
- In the live HTTP headers window you should see some output similar to the following:
- The important parts are the URL I've highlighted above (
) and any GET/POST parameters (
Now we can construct a script with wget to automate this:
wget --keep-session-cookies --save-cookies cookie.txt http://erdinger.sydney.atlassian.com/fisheye/admin/login.do --post-data="origUrl=&adminPassword=admin" wget --load-cookies cookie.txt --post-data="startRev=0&endRev=58&rep=2&action=rescan" http://erdinger.sydney.atlassian.com/fisheye/admin/indexMaint.do
With that you could generate a
post-revprop-change hook in svn that will update the repositories automatically.