Problem:
Currently, sonarcloud only executes when tests pass, but even if tests fail, it's valuable for sonarcloud to execute.
Solution:
Let SonarCloud scan always run no matter what status of the previous steps. Add a separate step to check if coverage report exist, if not, skip downloading coverage report. Run Override Coverage Source Path for Sonar, only if the coverage report download step has succeeded.
Testing:
Skip downloading the coverage report when the coverage report does not exist
The SonarCloud scan runs even though Override Coverage Source Path for Sonar fails.
Skip Override Coverage Source Path for Sonar when the coverage report does not exist.
Problem: Currently, sonarcloud only executes when tests pass, but even if tests fail, it's valuable for sonarcloud to execute.
Solution: Let SonarCloud scan always run no matter what status of the previous steps. Add a separate step to check if coverage report exist, if not, skip downloading coverage report. Run
Override Coverage Source Path for Sonar
, only if the coverage report download step has succeeded.Testing:
Override Coverage Source Path for Sonar
fails.