title: Sonarqube quality gate not sending webhook to jenkins
body: <p>I configure Jenkins to work with sonarqube scanner. The scan are working fine. The jenkins pipeline is working and I don't have any isssue in the jenkins log. </p>
  
  <p>SonarQube Scanner 3.0.3.778
  Jenkins: 2.70
  SonarQube Scanner for Jenkins plugin: 2.6.1</p>
  
  <p>I use this code: </p>
  
  <pre><code>    stage('SonarQube analysis') {
          sh 'sed -ie "s|_PROJECT_|${PROJECT_CODE}|g" $WORKSPACE/_pipeline/sonar-project.properties'
          // requires SonarQube Scanner 3.0+
          def scannerHome = '/opt/sonar/bin/sonar-scanner';
          withSonarQubeEnv('mscodeanalysis') {
              sh "${scannerHome}/bin/sonar-scanner -Dproject.settings=$WORKSPACE/_pipeline/sonar-project.properties"
          }
      }
      }
      }
  }
      }
      // No need to occupy a node
      stage("Quality Gate"){
          timeout(time: 15, unit: 'MINUTES') { // Just in case something goes wrong, pipeline will be killed after a timeout
          def qg = waitForQualityGate() // Reuse taskId previously collected by withSonarQubeEnv
              if (qg.status != 'OK') {
                  error "Pipeline aborted due to quality gate failure: ${qg.status}"
              }
          }
      }
  </code></pre>
  
  <p>My problem come from Quality Gate. It never POST the json payload to jenkins. I don't see a json entry inside jenkins log. But I know the connection between jenkins and sonarqube server is working because I was able to send a POST using curl from the sonarqube VM.</p>
  
  <p>Here the jenkins job output:</p>
  
  <pre><code>Timeout set to expire in 15 min
  [Pipeline] {
  [Pipeline] waitForQualityGate
  Checking status of SonarQube task 'AV3irVJXpvBxXXNJYZkd' on server 'mscodeanalysis'
  SonarQube task 'AV3irVJXpvBxXXNJYZkd' status is 'PENDING'
  Cancelling nested steps due to timeout
  </code></pre>
  
  <p>Here is my payload that never reach jenkins pipeline:
  url: <a href="http://sonar-server:9000/api/ce/task?id=AV3irVJXpvBxXXNJYZkd" rel="noreferrer">http://sonar-server:9000/api/ce/task?id=AV3irVJXpvBxXXNJYZkd</a></p>
  
  <pre><code>{"task":{"organization":"default-organization","id":"AV3irVJXpvBxXXNJYZkd","type":"REPORT","componentId":"AV3hrJeCfL_nrF2072FH","componentKey":"POOL-003","componentName":"POOL-003","componentQualifier":"TRK","analysisId":"AV3irVkZszLEB6PsCK9X","status":"SUCCESS","submittedAt":"2017-08-14T21:36:35+0000","submitterLogin":"jenkins","startedAt":"2017-08-14T21:36:37+0000","executedAt":"2017-08-14T21:36:38+0000","executionTimeMs":650,"logs":false,"hasScannerContext":true}}
  </code></pre>
  
  <p>I can't insert image but the Quality gate is Pass and the analysis task is success.</p>
  
  <p>Let me know if I need to include more information.
  Thank you</p>