I am using SonarCloud and it is connected to the organization (AzureDevOps).
When I try to add a new project to SonarCloud:
I go to the plus sign and then a list appears with the repositories from AzureDevOps.
The issue that I am facing is that not all the repositories appear on the list. I am trying to understand what is the condition from when a repository shows up VS when it doesn’t, but I still can’t identify the reason/condition.
Is this a bug? What could I do to see all the repositories? Is manually importing the only thing I can do for the missing ones?
We don’t have any condition on our side, we just rely on the token you provided to list the repositories, using the list repositories API provided on AzDo. Is there some kind of specific/granular permission set on your repositories that you don’t see maybe ?
Hi @mickaelcaro . We are still having this issue and we don’t see major differences in terms of permissions. Does the service SonarCloud use to pull the repositories have a max number of results(repositories) restriction?
We have a big number of repositories within our organization.
No update on the ETA : but i think the biggest problem we’ll face here is that the API we call to retrieve repositories is not paginated, so not sure if we can figure this out right now, we’ll have to check with MS support directly.
The only difference will be that your manually created project’s won’t benefit from the organization-wide PAT for PR decoration, meaning that you will need to put a PAT on each project’s setting. Apart from that, this is pretty much the same experience.
We are in a test phase for using SonarCloud. Our organization has aprox 170 projects and 450 repos.
SonarCloud imports only 212 repos, so a lot is missing. I can’t find any (azure) user policy causing this.
I can manually create projects as proposed, but its a work around…
In Azure devops api you might set a max return count. https://dev.azure.com//_apis/projects?api-version=6.0&$top=350
I would guess the default value, max 100 projects, is to small for a lot of organizations using “paid plan”.
Projects are now paginated, so you should normally see them all in the list.
Concerning the repos, that’s another story, we’re currently reviewing which kind of solution we can come up with, since the API doesn’t offer such possibility.
Hello,
I am still experiencing this issue of missing projects and repositories. Is there something we need to do on our side to get things to work ? The projects have been setup for a year or two already, before the fix mentioned in this thread. We now have a larger number of projects & repos connected, and the ones from before (and new ones) now cannot be found.
@mickaelcaro I am experiencing this issue as well. I am running 9.4. I see exactly 100 repos listed and when I search and check the network tab I can see the response contains the list of repos I would expect, but they do not show up in the list on the web page. You can see from the screenshots below that the web page shows only 1 result while the response returns 9 repositories.