hockey-gerrit

Gem Version Build Status Code Climate Coverage Status Dependency Status

The hockey-gerrit gem saves the gerrit change number, patch number, commit message and author to a file. The file can then be used with hockeyapp's Jenkins plugin to publish release notes for a mobile app.

Installation

gem install hockey-gerrit

Usage

Run hockey-gerrit inside a Jenkins job's execute shell. The job must be triggered by the gerrit-trigger plugin.

Test

This project uses Rubocop for linting and RSpec for testing. Run rake to run tests.

Test Usage

  1. Export a temporary environment variable for GERRIT_REFSPEC.
    • (eg. export GERRIT_REFSPEC="this/is/a/test"
  2. Inside of a git repo, run hockey-gerrit.
  3. The output will be something similar to the following: (Writes to changelog.md)
g70000,10
John Doe: Made a cool commit