I cannot transfer my code coverage report and my .trx file to SonarCloud.
Yet my pipeline is towards.
After analyzing the logs of the online sonar scanner 12368
WARN: Could not find any coverage report file matching the pattern ‘D: \ a \ _temp \ ** \ *. Coveragexml’.
My partern is not good,but I do not see where
Pattern matcher extracted prefix / absolute path ‘D: \ a \ _temp’ from the given pattern ‘D: \ a \ _temp \ ** \ *. Coveragexml’
Do you have an idea for the corrected one, because I do what @Joe says, but nothing to do it does not find my files.
However, when I do content checks with an echo task script and my files are there
I am attaching the logs to you, thank you for your help
Please double-check the directory of the *.trx file, it’s $(Agent.TempDirectory)\**\*.trx is not the right report path.
Please double-check the file type and the coverage task. From Task Coverage and Execution, we only accept these formats:
C#
sonar.cs.vscoveragexml.reportsPaths
Path to the Visual Studio Code Coverage report. Multiple paths may be comma-delimited or included via wildcards. See Notes on importing .NET reports below.
sonar.cs.dotcover.reportsPaths
Path to dotCover coverage report. See Notes on importing .NET reports below.
sonar.cs.opencover.reportsPaths
Path to OpenCover coverage report. See Notes on importing .NET reports below.
This post might help if you are wanting to use coverage.cobertura.xml, which uses sonar.coverageReportPaths with the generic test data format