在 sonarqube 插件拉分支分析发布的 gerrit 评论中更改 url

问题描述 投票:0回答:0

团队, 我可以在补丁集上的 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'
                            ]

sonarqube sonarscanner sonar-gerrit
© www.soinside.com 2019 - 2024. All rights reserved.