title: SonarQube jenkins asks for login and password
body: <p>I am trying to anaylse my maven project through jenkins pipeline.</p>
  
  <p>I have configured my SonarQube server instance in global settings of Jenkins with authorized token and server URL.</p>
  
  <p>Following is the groovy script in my jenkinsfile :</p>
  
  <pre><code>stage('SonarQube analysis') {
              tools {
                     jdk "jdk-8u152"
                  }
              steps {
                  withSonarQubeEnv('My Sonar') {
                      sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar -Dsonar.login=XXXXXXXXX'
                  }
              }
          }
  </code></pre>
  
  <p>When I build my project using jenkins I get the following error:</p>
  
  <pre><code>[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar (default-cli) on project MyProject: Not authorized. Please check the properties sonar.login and sonar.password.
  </code></pre>
  
  <p>I would think this is sufficient to analyse the project. Not really sure what am I missing!</p>