In the pipeline I first use prepare, then I build an application and the I try to upload the results.
The task is failing in the upload report procedure.
Although settings are correct as the debug logs seem that can fetch information from sonarcloud, when the report is uploading there is an issue.
We tried to escape the URL using ‘quotes’ but also this did not work as we had issues in previous steps of the analysis, when it fetches the branches and information about the project.
We have tried to run the analysis with dotnet-sonarscanner msbuild from a windows machine instead of a linux machine with sonar cli and we get the exact same error on the upload of the report.
We finally figured out that this error was due to upload results permissions missing on Sonarcloud project. The 404 error was very misleading for this particular case.