Page MenuHomePhabricator

Test documentation for integration a GitLab repo to SonarCloud
Closed, ResolvedPublic1 Estimated Story Points

Description

Let me review the documentation by testing adding a GitLab repo to SonarCloud, since I've never done it before.

AC:

  • Follow the documentation for how to add SonarCloud for the mediawiki-quickstart library
  • Document things that do not work and sync with @pwangai if something needs to be updated

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Call function that sets project key to environment variables.repos/test-platform/sonarqube!9pwangaiT404590main
Call function that sets project key to environment variables.repos/test-platform/sonarqube!8pwangaiT404590main
Add sonarcloud to quickstartrepos/test-platform/mediawiki-quickstart!61phedenskogsonarcloudmain
Customize query in GitLab

Event Timeline

Peter updated the task description. (Show Details)
Peter set the point value for this task to 1.
Peter added a subscriber: pwangai.

Hi @pwangai I'm lost on the first thing:
Create a project on SonarCloud using the GitLab project name.

When I choose "Analyze new project" under organisation:

Screenshot 2025-09-24 at 11.22.28.png (496×534 px, 56 KB)

I get:

Screenshot 2025-09-24 at 11.20.13.png (596×2 px, 115 KB)

I don't get any GitLab info. Is that the right button I should use to add a new project?

@Peter To analyze new project, click the "Analyze new project" button, then create the project under Wikimedia foundation. Also, we cannot integrate directly with Gitlab, that is why we run the analysis in Gitlab CI. I have up'd your rights in Gitlab which should allow you to own and create projects