Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

instructure/hockey-gerrit

Repository files navigation

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 build is then uploaded to hockeyapp.

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 path/to/app.
  3. The output will be something similar to the following: (Writes to changelog.md)
g70000,10
John Doe: Made a cool commit

About

Upload to hockeyapp from gerrit & Jenkins

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages