We have iOS project with SonarQube analysis implemented using multiple tools like GitHub actions and Azure. There is a common sonar-project.properties
file used by them.
sonar.coverageReportPaths=reports/sonarqube-generic-coverage.xml
is set in the sonar-project.properties
file so that in the Azure pipeline, SonarQube can parse it. sonarqube-generic-coverage.xml
is generated after building the project and running unit tests.
However, we also have a GitHub action which also uses the same sonar-project.properties
file but we do not run unit tests there. Therefore, no sonarqube-generic-coverage.xml
is generated which results in this error:
Error during SonarScanner execution
3907
ERROR: Error during parsing of the generic coverage report '/github/workspace/reports/sonarqube-generic-coverage.xml'. Look at SonarQube documentation to know the expected XML format.
3908
ERROR: Caused by: /github/workspace/reports/sonarqube-generic-coverage.xml (No such file or directory)
Is there any way we could reset the keys set in sonar-project.properties
file by overriding them from the command line (GitHub workflow file in my case)?