美文网首页
Gerrit 安装 Label Verified

Gerrit 安装 Label Verified

作者: 87d6dc4b11a7 | 来源:发表于2024-08-07 00:11 被阅读0次

使用docker安装的Gerrit在初次init时,未选择安装 Label Verified

参考官方文档,如果以后需要配置它,管理员可以通过向All-Projects中添加以下内容到project.config来实现。

[label "Verified"]
    function = MaxWithBlock
    value = -1 Fails
    value = 0 No score
    value = +1 Verified
    copyCondition = changekind:NO_CODE_CHANGE

添加完成后,在git push origin HEAD:refs/meta/config时提示以下错误。

ERROR: commit c63cfb7: Value 'MaxWithBlock' of 'label.Verified.function' is not allowed and cannot be set. Label functions can only be set to {NO_BLOCK, NO_OP, PATCH_SET_LOCK}. Use submit requirements instead of label functions.

根据提示修改MaxWithBlockNO_BLOCK后仍推送失败。
再次查看文档

image.png

修改MaxWithBlockNoBlock后推送成功

参考:
https://gerrit-documentation.storage.googleapis.com/Documentation/3.9.5/config-labels.html#label_Verified
https://gerrit-documentation.storage.googleapis.com/Documentation/3.9.5/config-labels.html#label_function

相关文章

  • Gerrit安装

    Gerrit安装 本文是以安装gerrit-2.14为例。 操作系统 Unix或Linux系统。本文的安装步骤是在...

  • Ubuntu下搭建gerrit服务器

    (一):安装gerrit 1:新建一个专用 linux 账号 sudo adduser gerrit sudo ...

  • Ubuntu14.04安装Gerrit-3.1.2

    版本说明 系统版本:Ubuntu server 14.04Gerrit版本:Gerrit-3.1.2 需要安装的程...

  • gerrit安装

    说明框架是:http+mariadb+gerrit 一:环境准备 安装jdk8 1.先卸载之前的java,保留下面...

  • 开发问题汇总

    The application could not be verified. 删除之前在设备上安装的app就好了,...

  • gerrit触发Jenkins编译并打分

    准备工作: 配置gerrit必须+2 +1才能merge gerrit安装events-log插件下载地址:htt...

  • Gerrit Code Review 搭建配置

    所需软件 Git:代码版本管理 Java:最低1.7版本 Gerrit:安装包是个war包 数据库:Gerrit支...

  • Jenkins Gerrit持续集成

    〇、概述 0.1 背景及目的 我司新手村任务: 安装运行gerrit; 建立一个gerrit仓库,使用git/re...

  • gerrit新增code-reviewer label

    实现机制: 修改project.config文件 如图: gerrit code-reviewer过程中的按钮是可...

  • win10安装gerrit+Apache

    1、前期准备 安装Java环境,因为gerrit的安装和运行都需要基于Java环境 安装Git环境,在安装的时候,...

网友评论

      本文标题:Gerrit 安装 Label Verified

      本文链接:https://www.haomeiwen.com/subject/yarqkjtx.html