Giter VIP home page Giter VIP logo

fisheye-git-repo-api's Introduction

Overview

This is a plugin for Fisheye/Crucible that provides an API for creating/indexing and deleting git repositories.

Usage

To use it:

  1. Build the jar (a built version is included in this git repo)
  2. Add it to Fisheye/Crucible
  3. Populate the git private key in the Git Repo API Config section in the admin interface.
  4. Use the URLs below to interact with the API.

Adding/indexing a git repository

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

Deleting a git repository

This will delete the git repository.

$ curl https://fish.domain/plugins/servlet/git-repo-api/delete?name=repo-name

Return information

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"
}

Developing

Getting started

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

Packaging

Run the atlas-package command. See full documentation.

Other available commands

  • atlas-debug - same as atlas-run, but allows a debugger to attach at port 5005
  • atlas-cli - after atlas-run or atlas-debug, opens a Maven command line window;'pi' reinstalls the plugin into the running Fisheye/Crucible instance
  • atlas-help - prints description for all commands in the SDK

Resources

Inspiration

JavaDoc

Atlas Plugin SDK Documentation

FishEye and Crucible Plugin Tutorials

fisheye-git-repo-api's People

Contributors

justone avatar

Watchers

Chris Ferry avatar Dominic Preuss avatar Oleksii Iepishkin avatar  avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.