title: sonar qube on jenkins pipeline
body: <p>How can I make that sonnar qube server analyze a mvn project on jenkins?. I have a pipeline project from CSM with a jenkinfile which point to a groovy file where all steps of the job are executed. All steps are working ok (mvn test, mvn package, mvn compile, etc), but don´t know how to execute the mvn sonar:sonar. It gives following error.Image show how do I have sonar configured in jenkins and the job step where it fails.</p>
  
  <p>And this is how I have the step described in groovy file of pipeline:</p>
  
  <pre><code>stage ('SonarQube analysis') {
      withSonarQubeEnv('https://sonarqube.xxxxx.com') {
          sh 'mvn sonar:sonar'
      }  
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/btw96.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/btw96.jpg" alt="Jenkins logs"></a></p>