0

Team, I am able to post comment in gerrit on patchset but i am not able to figure out how to change the url that is set in along with comment se in green in pic. any hint? Please observe the screen shot and I want to set a property in my jenkinsfile sonarToGerrit plugin section that changes this url in green to a custom one.

my pipeline is below that i built following 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'
                            ]

enter image description here

AhmFM
  • 1,552
  • 3
  • 23
  • 53

0 Answers0