aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-11-13 00:05:13 +0100
committerTeddy Wing2017-11-13 00:05:13 +0100
commit5616450a69358321f787f04b8fcaaff440e3e5c6 (patch)
treebf2fd6814304d4d3186d73ffb2de4e59da44b233
parent2463dfbfb35336ac4cb92110a9cc36a1f85c58fc (diff)
downloadkipper-5616450a69358321f787f04b8fcaaff440e3e5c6.tar.bz2
Add READMEv0.0.1
Add a little information about the project, some brief (probably incomplete) setup instructions, installation, and license information.
-rw-r--r--README.md69
1 files changed, 69 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..ce874d6
--- /dev/null
+++ b/README.md
@@ -0,0 +1,69 @@
+Kipper
+======
+
+A server that updates GitHub pull request commit statuses from Jenkins builds.
+
+
+## Prerequisites
+
+A Jenkins server configured with a "branches" project. This project will run a
+build for all new commits pushed to a branch. The project's name should match
+the GitHub repository name appended by "-branches". For example:
+
+ kipper-branches
+
+Each build name will have the following format:
+
+ branch-name-5ac92
+
+The branch name, followed by a hyphen "-", followed by the first five characters
+of the commit SHA.
+
+
+## Setup
+
+Kipper runs a web server that listens for a GitHub webhook. Configure your
+GitHub project with the following settings:
+
+ Payload URL: http://example.com/github/pull_request_event
+ Content type: application/json
+ Events: Pull request
+ Active: true
+
+Since GitHub will be sending webhook requests to Kipper, it must be publicly
+accessible.
+
+To run Kipper, several configuration parameters must be passed in via command
+line arguments in order for it to communicate with Jenkins and update commit
+statuses on GitHub:
+
+ ./kipper \
+ --jenkins-url 'http://jenkins.example.com' \
+ --jenkins-user-id 'username' \
+ --jenkins-token 'jenkins-token' \
+ --github-token 'github-token'
+
+By default, Kipper will run on port 8000.
+
+
+## Install
+
+A binary built for Mac OS X is available on the [releases][1] page. Download the
+binary and put it in your `PATH`.
+
+To compile from source:
+
+ $ cargo install --git https://github.com/teddywing/kipper.git --root /usr/local
+
+
+## Uninstall
+
+ $ cargo uninstall --root /usr/local kipper
+
+
+## License
+Copyright © 2017 Teddy Wing. Licensed under the GNU GPLv3+ (see the included
+COPYING file).
+
+
+[1]: https://github.com/teddywing/kipper/releases