Must-share information (formatted with Markdown):
- SonarQube Server 9.9.9
- Create a new project
- Linked SonarQube Server to Bitbucket
Hello,
We are trying to integrate SonarQube into out CI/CD pipeline but have some problems setting up the projects.
We have a lot of Bitbucket projects which between them have several thousand repositories.
When trying to create a new project in the “Create project->Bitbucket Server” view, the list of available Bitbucket repos I can see is limited to 25, just as the limit for the Bitbucket rest api. I read a previous answer relating to this, and it seems that is intended.
However, when searching for a repository, the repositories shown in the GUI is limited to these initial 25 projects even if it is available in another project that is not part of this list of 25 projects.
Example:
I create a new Bitbucket Server project:
I see these projects:
AA, AB, AC … and so on until the limit of 25.
I search for a repo in the search box, lets say repoA
I get results that repoA is available in projects
AA, AD
but I know it is also present in project DN but the GUI doesnt show that.
When inspecting the network tab in the browser however I can see that the list returned from bitbucket also contains the repositories in the DN project.
It looks like this:
https:///api/alm_integrations/search_bitbucketserver_repos
{
"isLastPage": true,
"repositories": [
{
"slug": "repoA",
"id": 1,
"name": "repoA",
"projectKey": "AA"
},
{
"slug": "repoA",
"id": 2,
"name": "repoA",
"projectKey": "AD"
},
{
"slug": "repoA",
"id": 3,
"name": "repoA",
"projectKey": "DN"
}
]
}
So the query returns the data but it is never displayed if the project is not part of the initial 25.
Is it a bug or a configuration that we have missed?