While I was evaluating Gerrit 2.6 I ended up installing the building the latest snapshot version (2.7RC) myself. All was fine until I was about to setup Jenkins to verify my commits. I was surprised to find the label “Verified” missing from the reviews. After some googling I found that in version 2.7 this has been removed and needed to be added manually in the project.config. After searching my drives I could not find this project.config only to realize that this is a file in the meta config. And this below is how you edit it:
mkdir tmp cd tmp git init git remote add origin ssh://firstname.lastname@example.org:29418/All-Projects git fetch origin refs/meta/config:refs/remotes/origin/meta/config git checkout meta/config
Now you should have the project.config in you temp folder. Add the label as below:
[label "Verified"] function = MaxWithBlock value = -1 Fails value = 0 No score value = +1 Verified
Next you need to commit and push back to Gerrit. Ofcourse make sure you have the appropriate rights.
git commit -a git push origin meta/config:meta/config