hockey-gerrit
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
- Export a temporary environment variable for
GERRIT_REFSPEC
.- (eg.
export GERRIT_REFSPEC="this/is/a/test"
- (eg.
- Inside of a git repo, run
hockey-gerrit path/to/app
. - The output will be something similar to the following: (Writes to
changelog.md
)
g70000,10
John Doe: Made a cool commit