I guess file searches is not supported? However dynamically searching for those XML files is pretty simple; add build sonar.coverage.jacoco.xmlReportPaths parameter like so:
Some properties support the following wildcards in paths. The remarks for properties that support wildcards will mention that fact. If the remarks do not say wildcards are supported, then they are not.
Edit: This post is outdated, wildcards are now supported.
Hello
Indeed, @skjolber is correct, wildcards are (currently) not supported for sonar.coverage.jacoco.xmlReportPaths as stated in the documentation you linked.
For the record, I just wanted to say that there is a ticket (JACOCO-15) to add support for wildcards in progress, you can expect them to be supported in the near future!
Hi,
I have a similar issue, the sonar analysis cannot find the file.
This is the mvn output
[WARNING] No coverage report can be found with sonar.coverage.jacoco.xmlReportPaths='./core/target/site/jacoco/jacoco.xml,core/target/site/jacoco/jacoco.xml
But if I run
ls -la ./core/target/site/jacoco/jacoco.xml
This is the output
-rw-r--r-- 1 root root 1408650 Nov 4 16:09 ./core/target/site/jacoco/jacoco.xml
the file is there.
I configure the path in SonarCould Project and not in the mvn command.
What I did wrong?