Giter Club home page Giter Club logo

jirret's Introduction

Overview

Gerrit hooks.

  • update JIRA issue
  • Require JIRA Version >= 7.0.0

Installation Steps

  • copy dist/grrit-jira-hook.tar to Gerrit instance server
# wget https://github.com/sintonwong/jirret/releases/download/v0.2/gerrit-jira-hook.tar.gz
  • install dependencies and copy hooks to gerrit install path
   # mkdir install
   # tar -xzvf gerrit-jira-hook.tar.gz -C install
   # cd install
   # chmod +x install.sh
   # GERRIT_PATH=<gerrit_install_path> ./install.sh
  • config file. Edit config file at hooks/jira-hook.config.
  • check gerrit permission.
# ssh -p 29418 admin@localhost gerrit

How it works:

1. Modify the “jira-hook.config” file.

[jira]

#username for jira user
user=admin

#passowrd for jira user
pass=admin

#URL to jira instance api calls (http://<domain>)
url=http://localhost:8080

# the command that is used to ssh into the gerrit sshd
gerritcmd=ssh -p 29418 admin@localhost gerrit

# If you create a custom field for "Gerrit status", put the numeric ID
# here.  The ID is found from the URL when editing that custom field.
# if set, it will set it to "pending" when a patch is uploaded, and "merged"
# when it is merged 
custom_field=

# optional comma separated list of jira projects
# two or more projects seperate with ","
projects=HELLOWORLD

# Set to 'true' if you'd like Jirret to search for Gerrit tracking IDs rather
# than in the subject line for your issue IDs
use_trackingid=false

# Set to false to disable {quote} markers surrounding comments
enable_quotes=true

2. Create a single user in JIRA and permit it to create comment on JIRA Issues.

3. Check gerrit permission.(add user’s pub key to Gerrit)

# ssh -p 29418 admin@localhost gerrit

4. In the user-end, the operation should like this:

# git add .
# git commit -s
		## remember change prjkey-id to real issue's id.
		add new feature.
		JIRA:prjkey-id
# git push origin HEAD:refs/for/master

5. All log saves in “hooks.log”, make it writable!

# chmod 755 hooks.log

More Links Related:

jirret's People

Contributors

annulen avatar defrur avatar hobbs 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.