The path from sonar.projectBaseDir is not used in report paths (eg. sonar.cs.opencover.reportsPaths or sonar.cs.nunit.reportsPaths)

466 views
Skip to first unread message

r.bae...@gmail.com

unread,
Jun 28, 2016, 9:07:39 AM6/28/16
to SonarQube
I have my sonar-project.properties in a subfolder called CX. All reports (nunit, coverage, ...) are also put in this folder.
Now, if I set the project path to the parent (sonar.projectBaseDir=../), analysis of the source works fine.
But the paths to the reports (sonar.cs.opencover.reportsPaths=CX/CoverageReport.xml) don't work since it seems that they are still relative to the path where the scanner was started (inside the CX folder).
Is this as planned? Is there another property to set the whole "working directory" to somewhere else?
Thanks
Roman

G. Ann Campbell

unread,
Jun 29, 2016, 12:24:31 PM6/29/16
to SonarQube, r.bae...@gmail.com
Hi Roman,

The reports are expected to be relative to the "working" directory, which is what you set with projectBaseDir.

But thanks for this potential-bug report. 


:-)
Ann
Reply all
Reply to author
Forward
0 new messages