Versions Compared

Key

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

...

You may then use any of the SonarQube Scanners to perform the analysis, such as Maven, Gradle, Ant, etc. An example using maven:

Image Removed

 

Analyzing

Analyzing with SonarQube Scanner for MSBuild

...

Go to the Build section, click on Add build step and choose Invoke Standalone SonarQube Analysis:Scanner.

Image Removed

Configure the SonarQube analysis. You can either point to an existing sonar-project.properties file or set the analysis properties directly in the Project Analysis properties field:

Image Removed

Analyzing with SonarQube Scanner for Maven

...

Once the environment variables are available, use them in a standard Maven build step :

Image Removed

by setting the Goals to include

 

Code Block
languagebash
$SONAR_MAVEN_GOAL -Dsonar.host.url=$SONAR_HOST_URL

 

 

Note
The Post-build Action for Maven analysis is still available, but is deprecated.