GithubHelp home page GithubHelp logo

isabella232 / stash-codesearch-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from palantir/stash-codesearch-plugin

0.0 0.0 0.0 412 KB

Provides global repository, commit, and file content search for Atlassian Stash instances

License: Apache License 2.0

Shell 2.91% Java 95.09% CSS 2.01%

stash-codesearch-plugin's Introduction

Stash Codesearch

Stash Codesearch is a service for searching and analyzing files and commits in Atlassian Stash Git repositories. It is backed by ElasticSearch (v1.3.3).

Stash Codesearch was written by Palantir Technologies and open-sourced under the Apache 2.0 license.

Authors

  • Jerry Ma (2014, Palantir Technologies)
  • Carl Myers (2014, Palantir Technologies)

Compilation

Dev/Release Workflow

This project uses versions determined by git describe --dirty='-dirty' --abbrev=12, and thus versions are of the form 1.2.3-N-gX where N is the number of commits since that tag and X is the exact 12-character prefix of the sha1 the version was built from.

If you build using ./build/invoke-sdk.sh, the version will be set automatically. Alternatively, you can set the DOMAIN_VERSION environemnt variable when invoking maven directly to override the version.

This is important because Atlassian plugins use OSGi and their version strings must be of the form "^\d+.\d+.\d+.*", so in order for jars that actually work to be produced, the tag must be a number such as "1.0.0". For that reason, feature branches will start "features/", and be merged into "master", which will occasionally be tagged for releases.

Not every released version will necessarily be put on the Atlassian Marketplace, but every released version should be stable (i.e. pass all unit tests, and be reasonably functional).

Installing

Before installing, you should have:

  • A running Atlassian Stash instance
  • A running ElasticSearch (v1.3.3) node
    • cluster name: stash-codesearch
    • transport listening on localhost:9300

You can obtain an instance of ElasticSearch by running the provided bin/install-elasticsearch-instance.sh script.

To install:

  • Compile the Stash plugin (see above).
  • Upload the target/stash-code-search-VERSION.jar file to your Stash instance's plugin manager (http://stash.url/plugins/servlet/upm).

Note: you must enable global indexing and trigger a reindex after installation (see below for instructions).

Testing

To test locally, you must run a local instance of ElasticSearch. You can do this by invoking the provided bin/invoke-es.sh before running atlas-run from the Atlassian plugin SDK.

Administration

  • Go to the Codesearch Global Settings page in the Stash admin panel.
  • Change the parameters to your desired values.
  • Click Save to save the settings, or Save and Reindex to save the settings and subsequently reindex all the repositories.

Repository Settings

By default, only master and develop are indexed. Individual repo admins may modify these settings as follows:

  • Go to the Codesearch Repository Settings page in your repository settings panel.
  • Change the ref regex to match your desired branches.
  • Click Save.

stash-codesearch-plugin's People

Contributors

atrocities avatar dana-cleveland-pfg avatar terabyte 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.