Error during parsing of generic test execution report while scanning through Sonarcloud

Hi Team,

We are trying to scan a project using Sonar scanner and publish the results to the dashboard.
The implementation was successful when we pushed the results to our own SonarQube server. But when we tried to publish the results of the same project to the Sonarcloud.io dashboard , we were facing the following error:

ERROR: Error during SonarQube Scanner execution ERROR: Error during parsing of generic test execution report '/x01/jenkins///test-report.xml’. Look at the SonarQube documentation to know the expected XML format. ERROR: Caused by: /x01/jenkins/**//test-report.xml (No such file or directory)**

Parameters which we are using during Sonarcloud scan:

sonar.organization =
sonar.projectName=
sonar.projectVersion=
sonar.projectKey=
sonar.sources=
sonar.exclusions=

We are using Jenkins to perform the sonar scan.

Please let me know the root cause of this error.
Thank you,

Hi @Vishal3

It looks like the scanner hasn’t found your coverage file. Can you check if the pattern is correct and if it look at the right place ?

Thanks.

Hi @mickaelcaro,

The configuration and the codebase did not get changed after performing sonarscan in sonarQube server and sonarcloud.io. Not sure why it is successful with SonarQube and failing with Sonarcloud…