From 651bec41ea0926f46f79ab08378d9a441363479e Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 30 May 2022 14:52:18 -0700 Subject: doc(gerrit-hook): add initial documentation Change-Id: Id9da12e3a42d42d67cb9962b1ad0b7d27e860663 Reviewed-on: https://cl.fcuny.net/c/world/+/201 Reviewed-by: Franck Cuny --- tools/gerrit-hook/README.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tools/gerrit-hook/README.org (limited to 'tools/gerrit-hook/README.org') 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. -- cgit 1.4.1