Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Adding SonarQube Scanner for MSBuild

...

  1. Go to Manage Jenkins and Configure System

    Image Added

  2. Click on MSBuild SonarQube Runner installations...

  3. Add an installation of the latest available version. Check Install automatically to have the SonarQube Scanner for MSBuild

...

  1. automatically provisioned on your Jenkins executors

    Tip

    If you do not see any available version under Install from GitHub, first go to Manage Jenkins > Manage Plugins > Advanced and click on Check now

    Image Added

  2. Click Save

Job-level Configuration

Configuring a SonarQube Scanner using environment variables

...

Analyzing with SonarQube Scanner for MSBuild

Refer to Jenkins section of in the SonarQube Scanner for MSBuild documentation.

  1. Open the configuration of a new or existing job
  2. Add both the SonarQube for MSBuild - Begin Analysis and SonarQube for MSBuild - End Analysis build steps to your build
    Image Added
  3.  Configure the SonarQube Project KeyName and Version in the SonarQube Scanner for MSBuild - Begin Analysis build step
  4. Use the MSBuild build step or the Execute Windows batch command to execute the build with MSBuild 14 (compatibility) between the Begin Analysis and End Analysis steps.
    Image Added 

Analyzing with the SonarQube Scanner

...