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

401 response requesting Quality Gate status

XMLWordPrintable

      Analysis completes successfully but upon requesting the status of the quality gate at the end of the build a 401 response is received. Our user has full admin privileges for both the SonarQube project and the SonarQube instance.

       

      This did not occur in the previous SonarQube version we were using (6.x)

      12:44:36 org.quality.gates.jenkins.plugin.QGException: Expected status 200, got: 401. Response:
      12:44:36 at org.quality.gates.sonar.api.SonarHttpRequester.executeGetRequest(SonarHttpRequester.java:124)
      12:44:36 at org.quality.gates.sonar.api.SonarHttpRequester.getAPITaskInfo(SonarHttpRequester.java:151)
      12:44:36 at org.quality.gates.sonar.api.QualityGatesProvider.getAPIResultsForQualityGates(QualityGatesProvider.java:62) 12:44:36 at org.quality.gates.jenkins.plugin.BuildDecision.getStatus(BuildDecision.java:24)
      12:44:36 at org.quality.gates.jenkins.plugin.QGPublisher.perform(QGPublisher.java:85)
      12:44:36 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      12:44:36 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      12:44:36 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
      12:44:36 at hudson.model.Build$BuildExecution.post2(Build.java:186)
      12:44:36 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
      12:44:36 at hudson.model.Run.execute(Run.java:1749)
      12:44:36 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      12:44:36 at hudson.model.ResourceController.execute(ResourceController.java:97)
      12:44:36 at hudson.model.Executor.run(Executor.java:421)

       

       

            arkanjoms Rafael Ramos
            miles_mason Miles Mason
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: