about summary refs log tree commit diff
path: root/tools/gerrit-hook/README.org
blob: d7146d8aef22808d974ee34171698c02f407dd8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#+TITLE: gerrit-hook

A hook for gerrit.

* Configuring the gerrit user
First create the account with =rgerrit create-account CI=.

Next we need to generate the HTTP password for the user, this can be done with =gerrit set-account CI --generate-http-password=.

Store the password in the file [[file:~/workspace/world/hosts/tahoe/secrets/gerrit/hooks.age][gerrit/hook.age]]
* Configuring the buildKite API key
You can obtain API token by going to this [[https://buildkite.com/user/api-access-tokens][page]]. Store the API token in the same file as the gerrit user.