Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43081

Quality-gates plugin do not work with SonarQube 6.3

    Details

    • Similar Issues:

      Description

      Quality-gates plugin does not work with SonarQube 6.3.

      Since SonarQube 6.3, api has been removed/changed.

      https://docs.sonarqube.org/display/DEV/API+Changes

      Error message in Jenkins build log:
      quality.gates.jenkins.plugin.QGException: Expected status 200, got: 404. Response: {"errors":[\{"msg":"Unknown url : /api/events"}]}
      at quality.gates.sonar.api.SonarHttpRequester.executeGetRequest(SonarHttpRequester.java:59)
      at quality.gates.sonar.api.SonarHttpRequester.getAPIInfo(SonarHttpRequester.java:47)
      at quality.gates.sonar.api.QualityGatesProvider.getRequesterResult(QualityGatesProvider.java:34)
      at quality.gates.sonar.api.QualityGatesProvider.getAPIResultsForQualityGates(QualityGatesProvider.java:29)
      at quality.gates.jenkins.plugin.BuildDecision.getStatus(BuildDecision.java:20)
      at quality.gates.jenkins.plugin.QGPublisher.perform(QGPublisher.java:73)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      at hudson.model.Build$BuildExecution.post2(Build.java:186)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
      at hudson.model.Run.execute(Run.java:1758)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:405)
      Build step 'Quality Gates' marked build as failure
      Finished: FAILURE

        Attachments

          Activity

          t_yas1 Yasuhiro Takahashi created issue -
          t_yas1 Yasuhiro Takahashi made changes -
          Field Original Value New Value
          Summary Do not work SonarQube 6.3 Quality-gates plugin do not work with SonarQube 6.3
          t_yas1 Yasuhiro Takahashi made changes -
          Description Quality-gates plugin does not work with SonarQube 6.3.

          Since SonarQube 6.3, api has been removed/changed.

          [https://docs.sonarqube.org/display/DEV/API+Changes]

          Error message in Jenkins build log:
          quality.gates.jenkins.plugin.QGException: Expected status 200, got: 404. Response: \{"errors":[\{"msg":"Unknown url : /api/events"}]}
          at quality.gates.sonar.api.SonarHttpRequester.executeGetRequest(SonarHttpRequester.java:59)
          at quality.gates.sonar.api.SonarHttpRequester.getAPIInfo(SonarHttpRequester.java:47)
          at quality.gates.sonar.api.QualityGatesProvider.getRequesterResult(QualityGatesProvider.java:34)
          at quality.gates.sonar.api.QualityGatesProvider.getAPIResultsForQualityGates(QualityGatesProvider.java:29)
          at quality.gates.jenkins.plugin.BuildDecision.getStatus(BuildDecision.java:20)
          at quality.gates.jenkins.plugin.QGPublisher.perform(QGPublisher.java:73)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
          at hudson.model.Build$BuildExecution.post2(Build.java:186)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
          at hudson.model.Run.execute(Run.java:1758)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:405)
          Build step 'Quality Gates' marked build as failure
          Finished: FAILURE
          Quality-gates plugin does not work with SonarQube 6.3.

          Since SonarQube 6.3, api has been removed/changed.

          [https://docs.sonarqube.org/display/DEV/API+Changes]

          Error message in Jenkins build log:
          bq. quality.gates.jenkins.plugin.QGException: Expected status 200, got: 404. Response: \{"errors":[\{"msg":"Unknown url : /api/events"}]}
          bq. at quality.gates.sonar.api.SonarHttpRequester.executeGetRequest(SonarHttpRequester.java:59)
          bq. at quality.gates.sonar.api.SonarHttpRequester.getAPIInfo(SonarHttpRequester.java:47)
          bq. at quality.gates.sonar.api.QualityGatesProvider.getRequesterResult(QualityGatesProvider.java:34)
          bq. at quality.gates.sonar.api.QualityGatesProvider.getAPIResultsForQualityGates(QualityGatesProvider.java:29)
          bq. at quality.gates.jenkins.plugin.BuildDecision.getStatus(BuildDecision.java:20)
          bq. at quality.gates.jenkins.plugin.QGPublisher.perform(QGPublisher.java:73)
          bq. at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          bq. at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          bq. at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
          bq. at hudson.model.Build$BuildExecution.post2(Build.java:186)
          bq. at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
          bq. at hudson.model.Run.execute(Run.java:1758)
          bq. at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          bq. at hudson.model.ResourceController.execute(ResourceController.java:97)
          bq. at hudson.model.Executor.run(Executor.java:405)
          bq. Build step 'Quality Gates' marked build as failure
          bq. Finished: FAILURE
          t_yas1 Yasuhiro Takahashi made changes -
          Description Quality-gates plugin does not work with SonarQube 6.3.

          Since SonarQube 6.3, api has been removed/changed.

          [https://docs.sonarqube.org/display/DEV/API+Changes]

          Error message in Jenkins build log:
          bq. quality.gates.jenkins.plugin.QGException: Expected status 200, got: 404. Response: \{"errors":[\{"msg":"Unknown url : /api/events"}]}
          bq. at quality.gates.sonar.api.SonarHttpRequester.executeGetRequest(SonarHttpRequester.java:59)
          bq. at quality.gates.sonar.api.SonarHttpRequester.getAPIInfo(SonarHttpRequester.java:47)
          bq. at quality.gates.sonar.api.QualityGatesProvider.getRequesterResult(QualityGatesProvider.java:34)
          bq. at quality.gates.sonar.api.QualityGatesProvider.getAPIResultsForQualityGates(QualityGatesProvider.java:29)
          bq. at quality.gates.jenkins.plugin.BuildDecision.getStatus(BuildDecision.java:20)
          bq. at quality.gates.jenkins.plugin.QGPublisher.perform(QGPublisher.java:73)
          bq. at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          bq. at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          bq. at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
          bq. at hudson.model.Build$BuildExecution.post2(Build.java:186)
          bq. at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
          bq. at hudson.model.Run.execute(Run.java:1758)
          bq. at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          bq. at hudson.model.ResourceController.execute(ResourceController.java:97)
          bq. at hudson.model.Executor.run(Executor.java:405)
          bq. Build step 'Quality Gates' marked build as failure
          bq. Finished: FAILURE
          Quality-gates plugin does not work with SonarQube 6.3.

          Since SonarQube 6.3, api has been removed/changed.

          [https://docs.sonarqube.org/display/DEV/API+Changes]

          *Error message in Jenkins build log:*
          bq. quality.gates.jenkins.plugin.QGException: Expected status 200, got: 404. Response: \{"errors":[\{"msg":"Unknown url : /api/events"}]}
          bq. at quality.gates.sonar.api.SonarHttpRequester.executeGetRequest(SonarHttpRequester.java:59)
          bq. at quality.gates.sonar.api.SonarHttpRequester.getAPIInfo(SonarHttpRequester.java:47)
          bq. at quality.gates.sonar.api.QualityGatesProvider.getRequesterResult(QualityGatesProvider.java:34)
          bq. at quality.gates.sonar.api.QualityGatesProvider.getAPIResultsForQualityGates(QualityGatesProvider.java:29)
          bq. at quality.gates.jenkins.plugin.BuildDecision.getStatus(BuildDecision.java:20)
          bq. at quality.gates.jenkins.plugin.QGPublisher.perform(QGPublisher.java:73)
          bq. at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          bq. at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          bq. at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
          bq. at hudson.model.Build$BuildExecution.post2(Build.java:186)
          bq. at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
          bq. at hudson.model.Run.execute(Run.java:1758)
          bq. at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          bq. at hudson.model.ResourceController.execute(ResourceController.java:97)
          bq. at hudson.model.Executor.run(Executor.java:405)
          bq. Build step 'Quality Gates' marked build as failure
          bq. Finished: FAILURE
          t_yas1 Yasuhiro Takahashi made changes -
          Description Quality-gates plugin does not work with SonarQube 6.3.

          Since SonarQube 6.3, api has been removed/changed.

          [https://docs.sonarqube.org/display/DEV/API+Changes]

          *Error message in Jenkins build log:*
          bq. quality.gates.jenkins.plugin.QGException: Expected status 200, got: 404. Response: \{"errors":[\{"msg":"Unknown url : /api/events"}]}
          bq. at quality.gates.sonar.api.SonarHttpRequester.executeGetRequest(SonarHttpRequester.java:59)
          bq. at quality.gates.sonar.api.SonarHttpRequester.getAPIInfo(SonarHttpRequester.java:47)
          bq. at quality.gates.sonar.api.QualityGatesProvider.getRequesterResult(QualityGatesProvider.java:34)
          bq. at quality.gates.sonar.api.QualityGatesProvider.getAPIResultsForQualityGates(QualityGatesProvider.java:29)
          bq. at quality.gates.jenkins.plugin.BuildDecision.getStatus(BuildDecision.java:20)
          bq. at quality.gates.jenkins.plugin.QGPublisher.perform(QGPublisher.java:73)
          bq. at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          bq. at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          bq. at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
          bq. at hudson.model.Build$BuildExecution.post2(Build.java:186)
          bq. at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
          bq. at hudson.model.Run.execute(Run.java:1758)
          bq. at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          bq. at hudson.model.ResourceController.execute(ResourceController.java:97)
          bq. at hudson.model.Executor.run(Executor.java:405)
          bq. Build step 'Quality Gates' marked build as failure
          bq. Finished: FAILURE
          Quality-gates plugin does not work with SonarQube 6.3.

          Since SonarQube 6.3, api has been removed/changed.

          [https://docs.sonarqube.org/display/DEV/API+Changes]

          *Error message in Jenkins build log:*
          quality.gates.jenkins.plugin.QGException: Expected status 200, got: 404. Response: \{"errors":[\{"msg":"Unknown url : /api/events"}]}
          at quality.gates.sonar.api.SonarHttpRequester.executeGetRequest(SonarHttpRequester.java:59)
          at quality.gates.sonar.api.SonarHttpRequester.getAPIInfo(SonarHttpRequester.java:47)
          at quality.gates.sonar.api.QualityGatesProvider.getRequesterResult(QualityGatesProvider.java:34)
          at quality.gates.sonar.api.QualityGatesProvider.getAPIResultsForQualityGates(QualityGatesProvider.java:29)
          at quality.gates.jenkins.plugin.BuildDecision.getStatus(BuildDecision.java:20)
          at quality.gates.jenkins.plugin.QGPublisher.perform(QGPublisher.java:73)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
          at hudson.model.Build$BuildExecution.post2(Build.java:186)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
          at hudson.model.Run.execute(Run.java:1758)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:405)
          Build step 'Quality Gates' marked build as failure
          Finished: FAILURE
          thanhpolimi Pham Tien Thanh made changes -
          Attachment quality-gates.hpi [ 36922 ]

            People

            • Assignee:
              ivanash Ivana Sh
              Reporter:
              t_yas1 Yasuhiro Takahashi
            • Votes:
              7 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated: