【问题标题】:How can I make Gerrit apply the "verified" label?如何让 Gerrit 应用“已验证”标签?
【发布时间】:2018-10-09 21:00:25
【问题描述】:

我将verified 标签添加到All-Projects,但它似乎不适用于TeamCity。 TeamCity 说它已将消息发送给 Gerrit,但 Gerrit 仍然没有将变更集显示为已验证。

我用终端重播了来自 TeamCity 的命令,它成功了(但同样没有明显效果):

$ ssh teamcity@gerrit.local -p 29418 -t 'gerrit review --verified=+1 --message=http://localhost:8111/viewLog.html?buildId=646&tab=buildResultsDiv&buildTypeId=bt5 98b2ada339da6b3567a11db87442fa795ce5d8a1'
Connection to gerrit.local closed.

当我尝试同样的事情但使用无效值(+2 而不是 +1)来查看会发生什么时,如预期的那样,我收到了一条错误消息:

$ ssh teamcity@gerrit.local -p 29418 -t 'gerrit review --verified=+2 --message=http://localhost:8111/viewLog.html?buildId=646&tab=buildResultsDiv&buildTypeId=bt5 98b2ada339da6b3567a11db87442fa795ce5d8a1'
Connection to gerrit.local closed.
fatal: "+2" must be in range -1..+1 for "--verified"
                                                    Connection to gerrit.local closed.

所以--verified 状态到达Gerrit,它被正确读取,但似乎没有正确应用。

什么会妨碍 Gerrit 显示已验证状态?

更新用户 TeamCity 显示为审阅者,但未给出任何已验证分数。

【问题讨论】:

    标签: git continuous-integration teamcity gerrit


    【解决方案1】:

    用户teamcity 没有设置标签的权限。我觉得奇怪的是 Gerrit 没有对此说任何话……我通过将 teamcity 设为管理员(如果拥有它需要或将需要的任何权限)来“解决”这个问题。

    【讨论】:

      猜你喜欢
      • 2018-11-14
      • 1970-01-01
      • 2023-04-02
      • 1970-01-01
      • 2011-10-18
      • 2015-11-25
      • 1970-01-01
      • 1970-01-01
      • 2016-05-18
      相关资源
      最近更新 更多