[英]Jenkins Gerrit reporting values plugin removes Code-review's value
[英]Scoring in Code-Review gerrit category is not happening
我已經配置了Sonar gerrit jenkins插件,該插件由gerrit觸發器插件通過gerrit rest API啟動。 https://wiki.jenkins-ci.org/display/JENKINS/Sonar+Gerrit
我按照提到的所有說明進行了工作。
只有一個小故障,即我非交互使用的“代碼審查”類別的評分沒有發生。 也就是說,補丁集的歷史表明用戶已經對代碼審查類別進行評分,但是在右上角的代碼審查類別下沒有代碼審查類別的條目。
也許不是特定於聲納Gerrit,但Gerrit專家可以在這里為我提供幫助。
我希望我能解釋這個問題。
干杯,
Saurav
我已經通過在gerrit項目的project.config中添加類別來解決了這個問題。 請在下面檢查。 您可以根據需要更改值。
label "Sonar-Verified"]
branch = refs/heads/*
function = MaxWithBlock
value = -2 Fails
value = -1
value = 0 No score
value = +1 Verified
defaultValue = 0
問候,
Saurav
默認情況下,Sonar-Gerrit插件使用Code-Review類別,因此它可以被其他用戶或Gerrit Trigger給出的分數覆蓋/覆蓋。 強烈建議在Gerrit中配置一個單獨的標簽。
[label "Sonar-Verified"]
function = MaxWithBlock
value = -1 Issues found
value = 0 No score
value = +1 Verified
defaultValue = 0
不要忘記設置訪問權限:
[access "refs/heads/*"]
label-Sonar-Verified = -1..+1 group Non-Interactive Users
配置插件標簽的專用標簽后,可以在Sonar-Gerrit插件設置中使用它。
有關更多詳細信息,請參見插件Wiki Gerrit設置部分。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.