Based on the extra information provided that the Gerrit plugin being used is the jenkinsci / sonar-gerrit-plugin
Add the newline character as \n\n\n
into your template, append it to the part of the comment where you want to start the next line of the comment.
In your example, to break the comment into 3 lines it will be like the following:
noIssuesTitleTemplate: 'SonarQube Evaluations.....violations have not been found.\n\n\nCodeCOV on New Code: ${codeCoveragePercent}% and\n\n\nDuplicated Lines on New Code ${codeDuplicates}'
This will appear on Gerrit:
SonarQube Evaluations.....violations have not been found.
CodeCOV on New Code: ${codeCoveragePercent}% and
Duplicated Lines on New Code ${codeDuplicates}
Note, that single quotes are used based on the Github page for the plugin, this should ensure that the line breaks are preserved and passed as separate lines to the Gerrit plugin.
CodeCOV on New Code: ${codeCoveragePercent}% and
Duplicated Lines on New Code ${codeDuplicates}"``` – djmonki Mar 30 '23 at 11:57
` as is in title. – AhmFM Mar 30 '23 at 15:32