
You need to configure your Multibranch Pipeline job correctly to avoid issues with Pull Request decoration. Configuring Multibranch Pipeline jobs for Pull Request Decoration These are set based on information exported by Jenkins plugins.įor configuration examples, see the SonarScanner for Jenkins documentation. The automatic configuration of branches and Pull Requests relies on environment variables available in Multibranch Pipeline jobs. Starting in Developer Edition, you can analyze multiple branches and Pull Requests. For more information, see the SonarScanner for Jenkins documentation. With Community Edition, you can only analyze a single branch. See the Installing and Configuring your Jenkins plugins section below to set up your Jenkins plugins before going through the tutorial. When asked How do you want to analyze your repository?, select With Jenkins.Select the repository you want to import into SonarQube.Click the Add project drop-down in the upper-right corner of the Projects page in SonarQube and select your DevOps platform.See the DevOps Platform Integrations in the left-side navigation of this documentation for more information.Ī tutorial is currently available for all supported DevOps Platforms except Azure DevOps. You need to set up SonarQube to import your repositories before accessing the tutorial.

Required to analyze multibranch pipeline jobs in Developer Edition or aboveĬlick your DevOps Platform below to expand the instructions on installing and configuring the Branch Source plugin. Credentials: Select the credentials created during step 4.Server URL: Your SonarQube instance URL.Name: Give a unique name to your SonarQube instance.From the Jenkins Dashboard, navigate to Manage Jenkins > Configure System.įrom the SonarQube Servers section, click Add SonarQube.Secret: Generate a token at User > My Account > Security in SonarQube, and copy and paste it here.Click the Global credentials (unrestricted) link in the System table.Ĭlick Add credentials in the left navigation and add the following information:.Back at the Jenkins Dashboard, navigate to Credentials > System from the left navigation.


SonarQube Scanner plugin version 2.11 or later is required.
