title: Get link to Sonar dashboard in Jenkins when calling 'gradle sonarRunner'
body: <p>With the Jenkins build step <code>Invoke Standalone Sonar Analysis</code> (which is available via the <a href="http://docs.codehaus.org/display/SONAR/Jenkins+Plugin" rel="noreferrer">Sonar plugin</a>) you get this nice link to the SonarQube dashboard in the job overview:
  <img src="https://i.stack.imgur.com/j8iFq.png" alt="sonar link">.</p>
  
  <p>I'm not using this build step due to <a href="https://stackoverflow.com/questions/21779791/fixing-class-is-not-accessible-through-the-classloader-warning-with-jenkins">an issue</a> but rather have a build step that calls <code>gradle sonarRunner</code>:
  <img src="https://i.stack.imgur.com/oIlkD.png" alt="gradle sonarRunner"></p>
  
  <p>This is the part of my <code>build.gradle</code> configuring Sonar:</p>
  
  <pre><code>sonarRunner {
      sonarProperties {
      property "sonar.projectKey", projectId
      property "sonar.projectName", projectName
  
      // Address of SonarQube server
      property "sonar.host.url", "http://localhost:9000"
  
      // Database config
      property "sonar.jdbc.url", "jdbc:mysql://localhost:3306/sonar?useUnicode=true&amp;characterEncoding=utf8&amp;rewriteBatchedStatements=true"
      property "sonar.jdbc.driverClassName", "com.mysql.jdbc.Driver"
      property "sonar.jdbc.username", "root"
      property "sonar.jdbc.password", "superSecret"
      }
  }
  </code></pre>
  
  <p>This works great: Just as with the <code>Invoke Standalone Sonar Analysis</code> build step, I can browse SonarQube's results at <code>http://localhost:9000/dashboard/index/jutilsId</code>.</p>
  
  <p>Unfortunately, this way the link to the SonarQube dashboard is gone from Jenkins' job overview.</p>
  
  <p><a href="http://eugenedvorkin.com/code-quality-analysis-in-deployment-pipeline-with-gradle-jenkins-and-sonar/" rel="noreferrer">This blog entry</a> describes how to achieve what I want but seems to be outdated as I can find no option in SonarQube's configuration that says <code>Check if this project is NOT built with maven 2</code>.</p>
  
  <p>Is there any way I can have this link and use <code>gradle sonarRunner</code>?</p>
  
  <hr>
  
  <p>My system:</p>
  
  <p>I'm using SonarQube Server 4.1.1, <a href="https://wiki.jenkins-ci.org/display/JENKINS/Gradle+Plugin" rel="noreferrer">Gradle Plugin 1.23</a>, <a href="https://wiki.jenkins-ci.org/display/JENKINS/Sonar+plugin" rel="noreferrer">Sonar Plugin 2.1</a>, Sonar Runner 2.3 and <code>gradle --version</code> gives:</p>
  
  <pre><code>------------------------------------------------------------
  Gradle 1.10
  ------------------------------------------------------------
  
  Build time:   2013-12-17 09:28:15 UTC
  Build number: none
  Revision:     36ced393628875ff15575fa03d16c1349ffe8bb6
  
  Groovy:       1.8.6
  Ant:          Apache Ant(TM) version 1.9.2 compiled on July 8 2013
  Ivy:          2.2.0
  JVM:          1.7.0_21 (Oracle Corporation 23.7-b01)
  OS:           Linux 3.10-2-486 i386
  </code></pre>