From 7bae8b8f8df312229a62c832ef438b2eec505277 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Tue, 8 Oct 2013 18:58:37 +0000 Subject: [PATCH] Adding a Gerrit third-party testing account * doc/source/gerrit.rst: Quick documentation added for the method by which a Gerrit administrator can create the sort of account needed for third-party testing. Change-Id: Ia7ec399027ad664a43d6084f988ed84ff572ac00 --- doc/source/gerrit.rst | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/doc/source/gerrit.rst b/doc/source/gerrit.rst index 93a70cfc88..4565843e29 100644 --- a/doc/source/gerrit.rst +++ b/doc/source/gerrit.rst @@ -367,7 +367,7 @@ To rename a project: #. Move both the git repository and the mirror on review.openstack.org:: - + sudo mv ~gerrit2/review_site/git/openstack/{OLD,NEW}.git sudo mv /var/lib/git/openstack/{OLD,NEW}.git @@ -415,6 +415,29 @@ or manually update their remotes with something like:: git remote set-url origin https://git.openstack.org/$ORG/$PROJECT +Third-Party Testing Access +-------------------------- + +The command to add an account for an automated system which gets +-1/+1 code verify voting rights (as outlined in `Third Party +Testing`_) looks like: + +.. code-block:: shell + + ssh -p 29418 review.openstack.org "gerrit create-account \ + --group 'External Testing Tools' \ + --full-name 'Some CI Bot' \ + --email ci-bot@third-party.org \ + --ssh-key 'ssh-rsa AAAAB3Nz...zaUCse1P ci-bot@third-party.org' \ + some-ci-bot" + +Details on the create-account_ command can be found in the Gerrit +API documentation. + +.. _`External Testing Tools`: http://ci.openstack.org/third_party.html + +.. _create-account: https://review.openstack.org/Documentation/cmd-create-account.html + Resetting a Username in Gerrit ------------------------------