Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: minor tweaks

...

Prerequisites

  • Java 6 or higher
  • SonarQube is already installed

Installation

  1. Uncompress the downloaded file into a directory named the directory of your choice. We'll refer to it as $SONARQUBE_RUNNER_HOME in the next steps.
     
  2. Update the global settings (database connection, server URL) by editing the $SONARQUBE_RUNNER_HOME/conf/sonar-runner.properties file:

    Code Block
    languagebash
    #----- Default SonarQube server
    #sonar.host.url=http://localhost:9000
    
    #----- PostgreSQL
    #sonar.jdbc.url=jdbc:postgresql://localhost/sonar
    
    #----- MySQL
    #sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8
    
    #----- Oracle
    #sonar.jdbc.url=jdbc:oracle:thin:@localhost/XE
    
    #----- Oracle
    #sonar.jdbc.url=jdbc:oracle:thin:@localhost/XE
    
    #----- Microsoft SQLServer
    #sonar.jdbc.url=jdbc:jtds:sqlserver://localhost/sonar;SelectMethod=Cursor
    
    #----- Global database settings
    #sonar.jdbc.username=sonar
    #sonar.jdbc.password=sonar
    

     

     

  3. Create a new SONAR_RUNNER_HOME environment variable set to $SONARQUBE_RUNNER_HOME.
     
  4. Add the $SONAR_RUNNER_HOME/bin directory to your path.
     
  5. You can check the basic installation by opening a new shell and executing the command sonar-runner -h (on Windows platform the command is sonar-runner.bat -h) . You should get a message like this:

    Code Block
    usage: sonar-runner [options]
    
    Options:
     -h,--help             Display help information
     -X,--debug            Produce execution debug output
     -D,--define <arg>     Define property
    

...