Do I need sonar and sonar runner for Jenkins?

I want to set up Sonar with Jenkins. But I’m not sure if the Sonar site describes two different ways to do this or if there are two necessary steps:

As far as I understood it, it’s two different ways. If this is the case, what is the difference and what are the advantages and disadvantages (between the Sonar itself and Sonar runner)?

  • Android-Jenkins: failed to find Build Tools revision 17.0.0 On Jenkins Build Server
  • Retrieve id of remotely triggered jenkins job
  • Checkout SVN with credentials in Jenkins pipeline?
  • Dynamic Parameter in Jenkinsfile?
  • Jenkins declarative pipeline: What workspace is associated with a stage when the agent is set only for the pipeline?
  • Android Jenkins build fails with crashlytics
  • Moving from plain Groovy to Gradle
  • Push to GitLab repository within CI server (deploy keys)
  • Jenkins MSTestRunner plugin is unable to launch mstest.exe
  • Triggering Jenkins build on both new tags & commits
  • How do I avoid issues with “Protected Mode” using IEDriverServer in Selenium?
  • Query for last successful build number in Jenkins with change
  • One Solution collect form web for “Do I need sonar and sonar runner for Jenkins?”

    If you want to analyse a project with SonarQube and Jenkins, here’s what you need:

    • A SonarQube server up and running

    • A Jenkins server up and running with the SonarQube Scanner for Jenkins installed and configure to point to your SonarQube server

    • A job configured to run a SonarQube analysis on your project:

      • Using the default and standard SonarQube Scanner (suitable for most projects)

      • Using the SonarQube Scanner for MSBuild (for .NET solutions)

      • Using a post build action for Maven-based projects

    Everything is described more in details on the SonarQube Scanner for Jenkins documentation page.

    Git Baby is a git and github fan, let's start git clone.