团队, 我可以在补丁集上的 gerrit 中发表评论,但我无法弄清楚如何更改设置的 url 以及图片中绿色的评论 se。有什么提示吗?请观察屏幕截图,我想在我的 jenkinsfile sonarToGerrit 插件部分中设置一个属性,将这个绿色的 url 更改为自定义的。
我的管道在我按照 https://www.jenkins.io/doc/pipeline/steps/sonar-gerrit/
建立的下面 sonarToGerrit(
inspectionConfig: [
analysisStrategy: pullRequest(),
],
// /* Optional parameters to test
reviewConfig: [
commentType: 'ROBOT', // 'STANDARD' or 'ROBOT'
issueFilterConfig : [
severity : 'INFO',
newIssuesOnly : false,
changedLinesOnly: false,
includedPathsGlobPattern: null,
excludedPathsGlobPattern: null,
],
noIssuesTitleTemplate : 'SonarQube violations have not been found.',
someIssuesTitleTemplate: '<total_count> SonarQube violations have been found.',
issueCommentTemplate : '<severity> SonarQube violation:\n\n\n<message>\n\n\nRead more: <rule_url>'
],
scoreConfig: [
issueFilterConfig: [
severity : 'INFO',
newIssuesOnly : false,
changedLinesOnly: false,
includedPathsGlobPattern: null,
excludedPathsGlobPattern: null,
],
category : 'Code-Review',
noIssuesScore : 0,
issuesScore : -1
],
notificationConfig: [
noIssuesNotificationRecipient : 'NONE',
commentedIssuesNotificationRecipient: 'OWNER',
negativeScoreNotificationRecipient : 'OWNER'
]