gitblit/gitblit — pull request #137 by vitalidze (2014-01-28 14:27:42+00:00)
Title: Added fisheye hook script

This script adds hook for fisheye/crucible tool. Based on jenkins hook script.

It [triggers fisheye scan](https://confluence.atlassian.com/display/FISHEYE/Configuring+commit+hooks#Configuringcommithooks-Triggeringscanningremotely) of repository with same name set up there. It has three parameters:

* `groovy.fisheyeServer` (required) - base URL for the RESTful services. For example: `http://my-fisheye-server:8080` or `http://my-fisheye-server:8080/context` (for server with fisheye deployed under some context)

* `groovy.fisheyeApiToken` (required) - fisheye [RESTful API token](https://developer.atlassian.com/display/FECRUDEV/Authenticating+REST+Requests) for authenticating requests

* `groovy.fisheyeRemoveGitSuffix` (optional, false by default) - whether to remove `.git` suffix from repository name when triggering re-index. Sometimes repositories' names in fisheye do not contain that suffix, this is when one wants to use it.