当前位置:网站首页>Gerrit基本的权限管理
Gerrit基本的权限管理
2022-07-16 11:24:00 【皮皮虾打篮球_】
Gerrit基本的权限管理
介绍下作为管理员如何设置一些基本的Gerrit权限管理。
首先创建一个成员组,方便我们能够一次配置小组的权限:
如图,我们点击BROWSE->Groups,在右侧有个CREATE NEW选项,这个可以创建组。
我们这里创建一个名为costar_dev的组,别配置如下:
然后点击左方的Members为这个组添加成员:
输入用户名,一般会弹出来补全,记得添加的这个用户一定是登录过Gerrit,且配置了邮箱。
从下面的选项可知,可以引用别的已存在的组成员。
这样我们就添加好了一个基本的组,后面就可以为这个组给予相应的权限。配置仓库的权限给相应的组
Gerrit的项目都默认继承于一个叫all-project的组,在BROWSE->Repository中可以看到,点击它可以看到这个父仓库的信息,其中就有仓库的权限配置,我们配置这个父仓库的权限,那么所以继承它的子仓库都会起作用:
点击Access,并点击edit ,可进入权限编辑页:
这里的权限我们简单的只关心基本的两项:refs/for/*是有关是否可以推送到review分支的权限,我们只需要给与组成员push、submit权限就可以。refs/head/*是review/verify代码的权限,决定着谁能review/verify- refs/for/* 配置添加push、submit权限项,并分给管理员、项目拥有者、特定组(比如costar_dev组)
- refs/head/* 配置添加 Label Code-Review和Label Verified权限,这里review权限给需要的组或者成员,相应的verify权限给对应的组或者成员
配置后的样子:


到这里,权限基本配置完成,这只是一个配置权限的演示,真正的项目权限不会直接去配置all-project这个仓库,而是自己创建一个父仓库,然后真正的子仓库去继承它,比如建一个bsp父仓库,然后所有有关bsp的子仓库继承于它,然后权限也是针对bsp组来给,因为android仓库太多,而研发组又分为bsp组、系统组、系统应用组等,这样不同的仓库继承不同的父仓库实现不同组不同的管理,理解了这个想法,权限配置是一样的玩法。
边栏推荐
- [take you to learn UVM by hand] ~ record all errors encountered
- 1.8 类和对象
- Apple commercial website blocks Firefox browser
- 调和级数是发散的
- MongoDB慢查询与索引
- 污水排放监控,环保数采仪助力城市黑臭水体治理
- Analysis and summary of three technical solutions to realize app automation
- [quick application] there are many words in the text component. How to solve the problem that the div style next to it will be stretched
- 架构系列之标准Web系统的架构分层
- Grab efficiency! What has the CTO of this enterprise done right to shorten the cloud planning time by half?
猜你喜欢

【Golang】切片(slice)

10张图教你同步与异步(转载)

支付宝沙箱测试手机网站支付,提示商户合作协议已到期,无法继续使用

10 pictures teach you synchronous and asynchronous (Reprint)

Sff1602-mhchxm diode sff1602

How to choose MySQL database storage engine? Let's take a look at the performance test

国际NFT交易所排行榜前10名

Interviewer: how can you close an order without using a scheduled task?

在登录欢迎栏弹出之前,将游戏切到后台,弹出欢迎栏之后再切回到游戏,华为防沉迷弹窗不出现,可直接进入游戏

Alipay sandbox tests mobile website payment, prompting that the merchant's cooperation agreement has expired and cannot continue to be used
随机推荐
ETCD数据库源码分析——etcdserver bootstrap去除v2store
[quick application] quick application user agreement and privacy policy content can jump many times. Click back and fail to return to the previous page. How to deal with it?
Scala 基础 (二):变量和数据类型
1.5.2 数组
Vscode 1.69 changes and concerns (three-way merge / terminal integration, etc.)
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
1.5.1 无限循环
flutter实现hero图片渐变放大 圖片等比方法圖片平滑放大
How should both parties bear the large amount of child support after divorce
1.6 方法
LeetCode SQL 1669. 176. 第二高的薪水
No 996, no involution, LETV has a "fairy day"?
uniapp video 视频未播放完成禁止拖拽进度条快进
An expert, Alibaba biggie quit and brought out the internal "high concurrency system design" learning manual
Pycharm crawler tutorial (only for technical exchange)
【HMS core】【Wallet Kit】【解决方案】华为钱包的客户端示例代码为何无法运行
leetcode专项 动态规划入门
873. 最长的斐波那契子序列的长度
【Golang】函数(一等公民)的使用
自建个性化自动报价系统,应对多变报价模式