title: How to fail a maven build, when quality gate fails?
body: <p>Earlier I use <code>sonar-maven-plugin version 3.2</code> then when a Sonar quality gate fails the build also used to fail. Now I am using <code>sonar-maven-plugin version 3.7.0.1746</code>, it does not happen so. Even if quality gate fails maven build succeeded. Now when I use version 3.2 in pom.xml it gives the error </p>
  
  <pre><code>[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar (default-cli) on project maven-webapp: Unable to execute SonarQube: Fail to download libraries from server -&gt; [Help 1]
  </code></pre>
  
  <p>While using <code>sonar-maven-plugin version 3.7.0.1746</code> doesn't give the above error.</p>
  
  <p>This is how I add the plugin in Pom.xml</p>
  
  <pre><code>&lt;plugin&gt;
       &lt;groupId&gt;org.sonarsource.scanner.maven&lt;/groupId&gt;
       &lt;artifactId&gt;sonar-maven-plugin&lt;/artifactId&gt;
       &lt;version&gt;3.2&lt;/version&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>I also got to know that in version 3.2 there was some post-job action like <code>org.sonar.plugins.buildbreaker.QualityGateBreaker</code>.</p>
  
  <p>How can it be done now?
  I am using <a href="https://sonarcloud.io/" rel="noreferrer">https://sonarcloud.io/</a> for sonar.</p>