Error while publishing sonarcloud results from azure devops

Hi,

after noticing the warnings about @1 versions of all the SonarCloud extensions task, today I’ve migrated to V2. Since no good documentation about the @2 is currently available, I’ve just replaced the @1 to @2 leaving all the task configuration/parameters basically untouched.

I tried to scan a .net application and the SonarCloudPublish task is returning this error, making the pipeline fail.

I then tried to run the pipeline in diagnostic mode and it seems that the error is due to an error while parsing the sonar cloud API call response. It seams. I can provider those detailed log in a private message.

Kind Regards,
Andrea

Hi Andrea:

My current pipelines use the following:

  • task: SonarCloudPrepare@2
  • task: SonarCloudAnalyze@2
  • task: SonarCloudPublish@2

Have you got your yaml file to share? Sounds like something else is up?

Regards

Andy

Hi Andy,

Nevermind… The error wasn’t related to the Azure DevOps tasks at all… I’ve just made a mistake defining the Permission Templates and once a new project were created the user, owner of the PAT token used by azure devops, wasn’t grant access to the project itself…

Thanks for you support anyway
Andrea

1 Like