Sonarqube : The component parameter is missing
Error:
org.quality.gates.jenkins.plugin.QGException: Expected status 200, got: 400. Response: {"errors":[{"msg":"The 'component' parameter is missing"}]}
at org.quality.gates.sonar.api.SonarHttpRequester.executeGetRequest(SonarHttpRequester.java:124)
at org.quality.gates.sonar.api.SonarHttpRequester.getComponentId(SonarHttpRequester.java:182)
at org.quality.gates.sonar.api60.SonarHttpRequester60.getSonarApiTaskInfoParameter(SonarHttpRequester60.java:39)
at org.quality.gates.sonar.api.SonarHttpRequester.getAPITaskInfo(SonarHttpRequester.java:145)
at org.quality.gates.sonar.api.QualityGatesProvider.getAPIResultsForQualityGates(QualityGatesProvider.java:62)
at org.quality.gates.jenkins.plugin.BuildDecision.getStatus(BuildDecision.java:24)
at org.quality.gates.jenkins.plugin.QGPublisher.perform(QGPublisher.java:85)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$BuildExecution.post2(Build.java:186)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
at hudson.model.Run.execute(Run.java:1840)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Build step 'Quality Gates Sonarqube Plugin' marked build as failure
Solución:
sonar.organization=Entidad
Entidad = nombre de la organización
Hello, where to enter sonar.organization param for Quality Gates Sonarqube Plugin?
ResponderEliminarI'am trying add this param in "Execute SonarQube Scanner->analysis propertie" in my job, but this is not fix this problem.
Same issue. Did you find any solution to this?
EliminarI am also facing the same issue, I have tries the jambrocio suggested solution still same problem!!!
ResponderEliminarI have tried to enter this property in sonar.organization=Entidad
in Quality Gates - Sonarqube plugin but enable to find the option
please some one suggest !!!
Same issue. Did you find any solution to this?
EliminarNot sure about the issue, I am also facing the same issue looking for some one help!!!
EliminarI recommend using version 7.6 because higher versions Have the same problem.
ResponderEliminar