![]() Setting up your projects this way also defines your project settings for pull request decoration.įor information on analyzing your projects with Azure Pipelines, see the Analyzing projects with Azure Pipelines section below. This token will be stored in SonarQube and can be revoked at any time in Azure DevOps.Īfter saving your personal access token, you'll see a list of your Azure DevOps projects that can be set up and added to SonarQube. Then, you'll be asked to provide a personal access token with Code (Read & Write) scope so SonarQube can access and list your Azure DevOps projects. ![]() You'll be asked for another personal access token for importing projects in the following section.Īdding a personal access token for importing repositoriesĪfter setting your global settings, you can add a project from Azure DevOps by clicking the Add project button in the upper-right corner of the Projects homepage and selecting Azure DevOps. This personal access token is used to report your quality gate status to your pull requests. See the Settings Encryption section of the Security page for more information. Administrators can encrypt this token at Administration > Configuration > Encryption. You need a personal access token from this account with the scope authorized for Code > Read & Write for the repositories that will be analyzed. We recommend using a dedicated Azure DevOps account with Administrator permissions. Personal Access Token: An Azure DevOps user account is used to decorate Pull Requests.If you are using Azure DevOps Services, provide your full Azure DevOps organization URL. Azure DevOps collection/organization URL: If you are using Azure DevOps Server, provide your full Azure DevOps collection URL.Use something succinct and easily recognizable. Configuration Name (Enterprise and Data Center Edition only): The name used to identify your Azure DevOps configuration at the project level. ![]() Navigate to Administration > Configuration > General Settings > DevOps Platform Integrations, select the Azure DevOps tab, and click the Create configuration button. To import your Azure DevOps repositories into SonarQube, you need to first set your global SonarQube settings. Add a personal access token for importing repositories.Set your global DevOps platform settings.To set up the import of Azure DevOps repositories: If you're using Developer Edition or above, this is also the first step in adding pull request decoration. Setting up the import of Azure DevOps repositories into SonarQube allows you to easily create SonarQube projects from your Azure DevOps repositories. Importing your Azure DevOps repositories into SonarQube Starting in Developer Edition, you can analyze multiple branches and pull requests. You've set a SonarQube Server base URL in Administration > Configuration > General Settings > General.Ĭommunity Edition doesn't support the analysis of multiple branches, so you can only analyze your main branch.Integration with Azure DevOps Server requires Azure DevOps Server 2022, Azure DevOps Server 2020, and Azure DevOps Server 2019 (including Express editions).Report your quality gate status to your pull requests (starting in Developer Edition ): See your quality gate and code metric results right in Azure DevOps so you know if it's safe to merge your changes.Starting in Developer Edition, the SonarQube Extension running in Azure Pipelines jobs can automatically detect branches or pull requests being built, so you don't need to specifically pass them as parameters to the scanner. Analyze projects with Azure Pipelines - Integrate analysis into your build pipeline.Import your Azure DevOps repositories: Import your Azure DevOps repositories into SonarQube to easily set up SonarQube projects.With this integration, you'll be able to: It is compatible with both Azure DevOps Server and Azure DevOps Services. SonarQube's integration with Azure DevOps allows you to maintain code quality and security in your Azure DevOps repositories.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |