Create repo manifest:
- As gerrit server administrator, create below pojects in gerrit server
container
:for global access control, choose “Only serve as parent for other projects”, unselect “Create initial empty commit”container/repo_1/manifest
:repo manifest, access right inherit from “container”, unselect “Only serve as parent for other projects”, select “Create initial empty commit”container/repo_1/git_one
:child project inside the repo, access right inherit from “container”, unselect “Only serve as parent for other projects”, select “Create initial empty commit”.container/repo_1/git_two
- Create my own repo config:
- on a client working machine, checkout the manifest git first:
1
|
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
4. On a client’s working machine, checkout the repo with below command:
1 2 |
|
Setup the access control rules for this repo:
1. define thress group and their access right:developers
: can submit CL, checkout code, review +/_ 1 reviewers
: can review +/- 2 submitters
: can merge CL to working branch 2. enforce these rules on gerrit server:
First delete all default access permission granted for “Registered Users” from https://gerritreview.com/gerrit/#/admin/projects/All-Projects,access
Then create below access rules for the projects under
container
: