SonarQube and Azure DevOps scanner not working

So, I noticed a PR for v10.0 regarding a publish issue. I have version 10.4 with the build agent using the latest Azure DevOps scanner 5.19.0.

Basically, users receiving the error:

API GET: ‘/api/server/version’ with query “undefined”

and

##[debug]0 final results
##[debug][SQ] Searching for **/report-task.txt - found 0 file(s)
##[warning]No analyses found in this build! Please check your build configuration.

I figured that there was an issue with the report-task.txt and saw that others had the same conclusion. The fix was:

 - task: CopyFiles@2
   inputs:
     SourceFolder: $(Agent.TempDirectory)
     Contents: '**/report-task.txt'
     TargetFolder: $(Agent.BuildDirectory)

Supposedly, there was a fix for 10.0–did that not make it to the current version or did I miss a configuration option in the upgrade?

Thanks!
BK

Hey there.

Yes these issues should be fixed in 5.14 and 5.15 of the task (and of course, by association, 5.19).

Can you share logs of one of the runs where you face these issues, specifically making sure the task versions are available?

While you’re at it – the full YAML of such a build would be useful to (just to check you’re using @5 of the tasks, not @4)