I’m trying to add SonarQube analysis to an Azure Devops pipeline on an Angular project.
Which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension):
- SonarQube Developer Edition Version 8.1 (build 31237)
- SonarQube Scanner 188.8.131.523
What are you trying to achieve
I’m trying to analyze an Angular project from an Azure DevOps pipeline and publish the report to a SonarQube server.
What have you tried so far to achieve this
So far, the general analysis has worked (bugs, code smells, Quality Gate, etc.), however it seems unable to measure the code coverage.
This are the settings on the ‘Prepare Analysis Configuration’ step:
And this are what I assume to be the relevant parts of the Code Analysis log:
It looks that it’s unable to match the path in the report file to the actual file.
I’m also processing the report file changing the paths from abosulte to relative (e.g.:
src/[...]) because the absolute ones didn’t work either.
I’ve also tried removing the
sonar.exclusions setting, but the result has been the same.
What am I missing?