Remove "Label Verified" when gerrit upgrade from 2.9 below to 2.9 above
移除 Gerrit Verified 功能
當 Gerrit 進行升級時,尤其是升級到 2.9 以後,如果不小心啟用了 Label Verified,但事後反悔想移除,可以參考本篇說明。
進行前請先確認,你有 administroter 的權限,指令如下:
mkdir tmp cd tmp git init git remote add origin ssh://{username}@{remotesite}:29418/All-Projects git fetch origin refs/meta/config:refs/remotes/origin/meta/config git checkout meta/config
此時在 tmp 的資料下應該就可以找到 project.config 且可在這個檔案找到下面的內容
[label "Verified"] function = MaxWithBlock value = -1 Fails value = 0 No score value = +1 Verified
將這 5 行移除並儲存之後,再將資訊回存至 server 就行了
git commit -a git push origin meta/config:meta/config
留言
張貼留言