title: SonarQube Scanner doesn't use both global or specific proxy settings
body: <p>We're using sonar scanner in our Jenkins pipeline to scan our code in a JNLP slave. 
  Both Sonarscanner and SonarQube are running in Docker containers in Openshift.
  Our SonarQube server is behind a proxy without authentication.
  Sonar scanner doesn't read any proxy information we submit to it through either -D http.ProxyHost in start command or in the configuration file. There is no way to reach our Sonarqube server behind the proxy. Could you help us figure out what to do?</p>
  
  <p>I tried all ways to fix it but nothing works:</p>
  
  <ul>
  <li>Passing -D https.ProxyHost -D https.ProxyPort (without http:// header)</li>
  <li>putting them into sonar-scanner.properties</li>
  <li>Passing proxy values in environment variables HTTP_PROXY, HTTPS_PROXY, JAVA_OPTS...
  Doing a curl to the SonarQube server works -> Firewall is ok, connectivity is ok.</li>
  </ul>
  
  <p>I couldn't find any issues tracker regarding this project in Github and the Jira tracker is closed to submitting new issues.</p>
  
  <p>Has anyone encountered the same issue? There is another question related to this but no answer have been given: <a href="https://stackoverflow.com/questions/47632245/sonarqube-scanner-cant-connect-to-server">SonarQube scanner can&#39;t connect to server</a></p>
  
  <p>Thanks,</p>
  
  <p>Lain92</p>