Trying to add the Quality Gates post-build step to a freestyle job.

      When I click on "Save" I get an error "A problem occurred while processing the request" and this exception is logged:

      Caught unhandled exception with ID 48cfee74-76c9-45e2-bd61-fcd95851759c
      org.quality.gates.sonar.api.ApiConnectionException: Stream already closed
          at PluginClassLoader for sonar-quality-gates//org.quality.gates.sonar.api.SonarHttpRequesterFactory.getSonarHttpRequester(SonarHttpRequesterFactory.java:37)
          at PluginClassLoader for sonar-quality-gates//org.quality.gates.sonar.api.QualityGatesProvider.<init>(QualityGatesProvider.java:25)
          at PluginClassLoader for sonar-quality-gates//org.quality.gates.jenkins.plugin.BuildDecision.<init>(BuildDecision.java:12)
          at PluginClassLoader for sonar-quality-gates//org.quality.gates.jenkins.plugin.QGPublisher.<init>(QGPublisher.java:27)
          at PluginClassLoader for sonar-quality-gates//org.quality.gates.jenkins.plugin.QGPublisherDescriptor.newInstance(QGPublisherDescriptor.java:85)
          at PluginClassLoader for sonar-quality-gates//org.quality.gates.jenkins.plugin.QGPublisherDescriptor.newInstance(QGPublisherDescriptor.java:17)
          at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:1207)
          at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:1156)

      Same result with an existing job with several build steps already configured, or with a newly created, blank job.

      Quality gate configured with server URL=https://sonarqube.my.domain; tried either with username/password, or with a token, same error.

          [JENKINS-75326] Error adding Sonar Quality Gates -post-build

          Mark Waite added a comment -

          kirk_fitz is this a possible issue from the most recent release?

          Mark Waite added a comment - kirk_fitz is this a possible issue from the most recent release?

          Kirk added a comment - - edited

          Hi, i this could be due to the recent update to the http5 client, there is a PR open, i will review asap

           

          https://github.com/jenkinsci/sonar-quality-gates-plugin/pull/59

           

           

          The httpclient upadte was done as part of this PR

          https://github.com/jenkinsci/sonar-quality-gates-plugin/pull/57

           

          Unfortunately, the issue was not spotted during test

          Kirk added a comment - - edited Hi, i this could be due to the recent update to the http5 client, there is a PR open, i will review asap   https://github.com/jenkinsci/sonar-quality-gates-plugin/pull/59     The httpclient upadte was done as part of this PR https://github.com/jenkinsci/sonar-quality-gates-plugin/pull/57   Unfortunately, the issue was not spotted during test

          Flavio added a comment -

          Jenkins 2.492.1

          Sonar Quality Gates Plugin 348.v05e3e44d23ee

          Flavio added a comment - Jenkins 2.492.1 Sonar Quality Gates Plugin 348.v05e3e44d23ee

          Mark Waite added a comment -

          kirk_fitz would you like to be the default assignee for Jira issues reported to the Sonar Quality Gates Plugin? That would notify you when new issues are repiorted.

          Mark Waite added a comment - kirk_fitz would you like to be the default assignee for Jira issues reported to the Sonar Quality Gates Plugin? That would notify you when new issues are repiorted.

          Kirk added a comment -

          Yes please Mark, a review of the issues needs to happen as well, some of the issue don't even seen to be related to the sonar-quality-gates plugin

          Kirk added a comment - Yes please Mark, a review of the issues needs to happen as well, some of the issue don't even seen to be related to the sonar-quality-gates plugin

          Mark Waite added a comment -

          Done. You are now the default assignee

          Mark Waite added a comment - Done. You are now the default assignee

            kirk_fitz Kirk
            fstanchina Flavio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: