For the complete documentation index, see llms.txt. This page is also available as Markdown.

Creating your project

You can create projects on SonarQube Cloud by importing repositories from your DevOps platform.

You can create projects by importing your DevOps platform repositories which automatically binds new projects to the respective repository. This binding has many advantages, see Binding with the DevOps platform for more details. Users will need the Create Projects permission in their organization. You can also create projects manually. However, manually created projects are unbound.

  • Repository import is only possible if your SonarQube Cloud organization is bound to its corresponding DevOps platform organization (i.e. the DevOps platform organization has been imported to SonarQube Cloud).

  • By default, the visibility of newly created projects is set to private.

Importing a repository selection

  1. On the top right of the SonarQube Cloud interface, select the ✚ (plus) menu and select Analyze new project. The Analyze projects page opens.

  2. Select your organization.

  3. Select the repositories you want to import. The Set up button shows up.

Select at least one repository in the left section. The Set up button shows up.
  1. Select the Set up button. The Setup up new code for project page opens.

  2. Select the new code definition for your project, see Quality standards and new code for more details.

  3. Select the Create project button. The project is created and the Automatic analysis is started if supported.

To import a monorepo, see Monorepo support.

Bulk importing all repositories

This feature is supported for GitHub and GitLab only.

About this feature

You can import all existing repositories from your DevOps Platform organization in a bulk operation.

However, the following repositories will be skipped during the bulk import:

  • Repositories that have already been imported.

  • Public repositories, if your SonarQube Cloud organization is configured only for private projects.

  • Private repositories, if your SonarQube Cloud organization plan does not support private repositories.

You can track the progress of the import using a toast notification that displays the total number of repositories being processed. You have the option to stop the operation at any time; however, stopping the import will not undo the processing of repositories that have already been completed.

Upon completion of the bulk import, a downloadable CSV import report is generated. This file details all processed repositories, indicating their status (Imported, Skipped, or Failed) along with any relevant supplementary information.

Projects created using the bulk import feature are automatically marked as favorite projects. Note that a user has a limit of 100 favorite projects.

Starting and monitoring the import

To import all the existing repositories of your GitHub organization:

  1. On the top right of the SonarQube Cloud interface, select the ✚ (plus) menu and select Analyze new project. The Analyze projects page opens.

  2. Select your organization.

Select the Report all repositories button.
  1. In Bulk import all repositories on the right side, select Import all repositories. Note that the button is only available if you don’t select any repository on the left side. The Setup up new code for project page opens.

  2. Select the new code definition for your project, see Quality standards and new code for more details.

  3. Select Create project. The auto-import process begins automatically. You can track its progress using the toast notification, which displays the following metrics:

    • Processed: The total count and percentage of repositories handled so far.

    • Imported: The number of repositories successfully added.

    • Failed: The count of repositories that could not be imported, typically due to issues with the SonarQube Cloud API.

    • Skipped: The number of repositories excluded because they did not meet the import eligibility criteria. For more information, see About this feature.

The banner shows the progress of the bulk import of repositories.

In the toast notification, select View projects to view and refresh the list of imported projects.

After the import is finished, a completion notification will display. In the notification, select View summary to view the import report. See Viewing the import report below.

Viewing the import report

Upon completion of the bulk import, a downloadable CSV import report is generated. This file details all processed repositories, indicating their status (Imported, Skipped, or Failed) along with any relevant supplementary information.

To view the CSV import report:

  1. In the bulk import complete or incomplete notification, select View summary. The Summary of bulk import opens.

The complete banner is shown at the end of a successful bulk import of repositories.
  1. Select the Download CSV list button to download the CSV report.

Select Download CSV list to export the import report to CSV.

Stopping the import

To stop the import, select Stop importing in the toast notification and confirm.

Select the Stop button.

The stopping of the import will not remove repositories that have already been processed. To delete imported projects, see Deleting project.

The import proceeds in batches of 25 repositories. Consequently, selecting Stop importing will not halt the process immediately but will allow the currently active batch to complete.

If the import stops on an error

If the import stops on an error, a Bulk import incomplete notification will be displayed. Wait 10 to 15 minutes before attempting to retry the process. You may need to repeat this step if the import continues to fail.

The failure banner is shown when the bulk import stops on an error.

Any repositories that were successfully imported will remain and will not be removed. To view the list of imported repositories, select View summary in the notification. See Viewing the import report for more details.

Auto-import of new repositories

This feature is supported only for GitHub organizations.

If the feature is enabled in your GitHub organization, newly added or created repositories in your GitHub organization are automatically imported into SonarQube Cloud. For more information, see Auto-importing new repositories.

Creating a project manually

  1. On the top right of the SonarQube Cloud interface, select the ✚ (plus) menu and select Analyze new project. The Analyze projects page opens.

  2. On the right of the page, select create a project manually.

  3. Select the organization, enter the project name and key, and set project's visibility.

  4. Click Next.

  5. Select the new code definition for your project, see Quality standards and new code.

  6. Select the Create project button. The project is created. You must now set up your CI-based analysis. Automatic analysis is not supported for unbound projects.

Last updated

Was this helpful?