title: Gitlab-ci job of sonar-scan always succeeds irrespective of quality gate failure
body: <p>I am using <a href="http://www.talanlabs.com/" rel="nofollow noreferrer">tanlab's</a> gitlab plugin for sonar reporting. Below is command I'm running it on gitlab ci pipeline:</p>
  
  <pre><code>sonar-scanner -Dproject.settings=sonar-project.properties -Dsonar.host.url=$HOST -Dsonar.login=$TOKEN -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.projectName=$PROJECT_NAME -Dsonar.branch.name=$CI_COMMIT_REF_NAME -Dsonar.gitlab.failure_notification_mode="exit-code" -Dsonar.qualitygate.wait=true -Dsonar.gitlab.query_wait=2000 -Dsonar.gitlab.query_max_retry=100 -Dsonar.analysis.mode=publish -Dsonar.gitlab.commit_sha="$CI_COMMIT_SHA" -Dsonar.gitlab.ref_name="$CI_COMMIT_REF_NAME" -Dsonar.gitlab.project_id="$CI_PROJECT_PATH" -Dsonar.gitlab.disable_inline_comments=true
  </code></pre>
  
  <p>And here is the job output which is showing execution success, but the quality gate is failed with a critical bug.</p>
  
  <pre><code>...
   INFO: Analysis report generated in 1588ms, dir size=1 MB
   INFO: Analysis report compressed in 341ms, zip size=563 KB
   INFO: Analysis report uploaded in 298ms
   INFO: ANALYSIS SUCCESSFUL, you can browse https://xyz/dashboard?id=xyz&amp;branch=xyz&amp;resolved=false
   INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
   INFO: More about the report processing at ...
   INFO: Read data from file
   INFO: Save data from file
   INFO: Summary is saved under /builds/.../SummaryOfProjectAnalysis.json
   INFO: Executing post-job 'Summary of project analysis'
   INFO: PostJobContext is execute
   INFO: Save data from file
   INFO: Summary is saved under /builds/...
   INFO: Analysis total time: 48.293 s
   INFO: ------------------------------------------------------------------------
   INFO: EXECUTION SUCCESS
   INFO: ------------------------------------------------------------------------
   INFO: Total time: 1:51.196s
   INFO: Final Memory: 36M/475M
   INFO: ------------------------------------------------------------------------
   [07:36:13] SonarQube analysis finished.
  </code></pre>
  
  <p>Is there anything am I missing?</p>