Can't find 'Label Verified' permission in gerrit 2.7

落花浮王杯 提交于 2019-11-27 17:52:14

问题


I'm trying to configure Jenkins gerrit trigger following this instructions: https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger. One point says to grant 'Label verified' permission to Non-intractive users. The problem is, I don't see such a privilege...

'Add permission...' combo box has 'Label Code-review' permission but not 'Label verified'.

Was this permission removed/renamed from gerrit 2.7? Will this plugin work if I don't set it?


回答1:


Indeed the "Verified label" was removed. You need to add it to the project.config which is not as straight forward as it sounds. More info on how to add it to your project.config can be found in this blog post as I answered here before




回答2:


In Gerrit version 2.12, I was able to re-add "Label Verified" by changing the All Project Config via the GUI.

Steps:

  1. Selecting Projects => List => All Projects => General
  2. Clicking the Edit Config button under the Project Commands section
  3. Adding the following block at the bottom and clicking

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

  1. Click the Save and Close button
  2. Click the Publish button
  3. Click the Code Review +2 button
  4. Click the Submit button



回答3:


Yes this label was removed from the default installation of Gerrit 2.7. If you had an earlier installation and upgrade to 2.7 you will still have the label. The plugin will still work - you can add the verified label to your Gerrit setup or configure the plugin to use the code reviewe label (or any other custom label).



来源:https://stackoverflow.com/questions/20019195/cant-find-label-verified-permission-in-gerrit-2-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!