about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-30 14:52:18 -0700
committerFranck Cuny <franck@fcuny.net>2022-06-04 15:26:21 -0700
commit651bec41ea0926f46f79ab08378d9a441363479e (patch)
tree3d70dea4c87eb83cbd38ebf435eaf4005673a9f2
parentfeat(gerrit): install the gerrit hook (diff)
downloadworld-651bec41ea0926f46f79ab08378d9a441363479e.tar.gz
doc(gerrit-hook): add initial documentation
Change-Id: Id9da12e3a42d42d67cb9962b1ad0b7d27e860663
Reviewed-on: https://cl.fcuny.net/c/world/+/201
Reviewed-by: Franck Cuny <franck@fcuny.net>
-rw-r--r--tools/gerrit-hook/README.org12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/gerrit-hook/README.org b/tools/gerrit-hook/README.org
new file mode 100644
index 0000000..d7146d8
--- /dev/null
+++ b/tools/gerrit-hook/README.org
@@ -0,0 +1,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.