Build step 'Quality Gates Sonarqube Plugin' marked build as failure

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    using sonar 7.9.3 LTS version with Ubuntu 18-04,openjdk 11.0.7
    VM having 4GB RAM & 2 vCPU
  • what are you trying to achieve
    to integrate sonar quality gates with jenkins for code quality review
  • what have you tried so far to achieve this
    to install current quality gates plugin inside jenkins , enabled it inside post build action of jenkins Jobs and then it will throw error when running jenkins job. with below message.

org.quality.gates.jenkins.plugin.QGException: Expected status 200, got: 404.
Response: {“errors”:[{“msg”:“Component key ‘dc285f07cd5a0b266c8afd7b4c902123361d6584’ not found”}]}
at org.quality.gates.sonar.api.SonarHttpRequester.executeGetRequest(
at org.quality.gates.sonar.api.SonarHttpRequester.getAPITaskInfo(
at org.quality.gates.sonar.api.QualityGatesProvider.getAPIResultsForQualityGates(
at org.quality.gates.jenkins.plugin.BuildDecision.getStatus(
at org.quality.gates.jenkins.plugin.QGPublisher.perform(
at hudson.tasks.BuildStepMonitor$1.perform(
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(
at hudson.model.Build$BuildExecution.post2(
at hudson.model.AbstractBuild$
at hudson.model.Run.execute(
at hudson.model.ResourceController.execute(
Build step ‘Quality Gates Sonarqube Plugin’ marked build as failure

P.S = Till the post build action , everything was executed successfully in Jenkins Job.


The quality gates plugin isn’t supported here. (You might want to see if it has a community.) What we offer natively is webhooks. Using them in the context of a Jenkins pipeline to reflect the Quality Gate status is well documented.


1 Like