Using SonarCloud for Azure DevOps

I want to use SonarCloud doing some code analytics in my project. I am not the administrator but i have already include SonarCloud as an extension for our teams.

When i read the document, i find thạt there exist a build task called Run Code Analysis . However, when i try to import it into azure Pipelines, i can not find it as something i can use.
image

How can i import it into my pipelines? Many thanks

1 Like

Hi,

Are you using the YAML editor for configuring your pipeline ?

2 Likes

yes, i try it but can not find how to add

We have a case opened at MS because this is an issue on their side (see https://developercommunity.visualstudio.com/content/problem/549068/yaml-assistant-panel-doesnt-show-tasks-with-no-inp.html)

In the mean time, you can use the classic editor, where your will find the task (both from the template we provide or manually)

1 Like


I try it here, however i cant find any Agent Pools to add

Why i try the manage interface, it shows that all availables pools have been added.

1 Like

As you are not an admin, you probably need more privileges to do so (https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/pools-queues?view=azure-devops#security)

1 Like