This is a plugin for Fisheye/Crucible that provides an API for creating/indexing and deleting git repositories.
To use it:
- Build the jar (a built version is included in this git repo)
- Add it to Fisheye/Crucible
- Populate the git private key in the
Git Repo API Config
section in the admin interface. - Use the URLs below to interact with the API.
This will add the repository if not present and then initiate an indexing run. If the repository already exists, only the indexing will be started.
$ curl https://fish.domain/plugins/servlet/git-repo-api/update?url=ssh://git.domain/repo.git&name=repo-name
This will delete the git repository.
$ curl https://fish.domain/plugins/servlet/git-repo-api/delete?name=repo-name
If the action is successful, a json response similar to the following will be returned:
{
"response": "create/update successful"
}
If it fails, a json response similar to the following will be returned:
{
"error": "delete failed, repo refused to stop"
}
First, install the Atlassian Plugin SDK.
Change directory into a clone of this repo and run Fisheye (available at http://:3990/fecru):
$ atlas-run
Or to run against a specific version (list of available versions) :
$ atlas-run --version 2.7.13-20120517072828
Run the atlas-package
command. See full documentation.
atlas-debug
- same as atlas-run, but allows a debugger to attach at port 5005atlas-cli
- after atlas-run or atlas-debug, opens a Maven command line window;'pi' reinstalls the plugin into the running Fisheye/Crucible instanceatlas-help
- prints description for all commands in the SDK
Inspiration
JavaDoc
Atlas Plugin SDK Documentation
FishEye and Crucible Plugin Tutorials