How to make a "regex" on parameter '-Dsonar.coverageReportPaths'

Hi!

I’m trying this there’s a time.

How can I use regex on parameter -Dsonar.coverageReportPaths?

I tried: -Dsonar.coverageReportPaths=*part-name-file.xml and other hundred ways, but I didn’t have success :frowning:

Hello Vitor,

I’m afraid you tried for nothing because as stated in the documentation (https://sonarcloud.io/documentation/analysis/generic-test/):

Report paths should be passed in a comma-delimited list to sonar.coverageReportPaths

If think the best is to write a small script to gather the list corresponding to “*part-name-file.xml” and then inject this list to the command line containing -Dsonar.coverageReportPaths

Regards