Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-11747

Calculation fails for portfolios containing QG=Warning projects

    Details

    • Edition:
      Enterprise
    • Production Notes:
      None

      Description

      In 7.5 we reworked quality gates, including the drop of Warning status. The Upgrade procedure tells users to re-analyze all projects (immediately) post-upgrade. And yet that can be an unreasonable expectation for the kind of large Enterprise instance which is most likely to make heavy use of Portfolios.

      When a portfolio contains a project where the Quality Gate status is Warning (i.e. no longer valid) calculation of the portfolio fails:

      org.sonar.ce.task.projectanalysis.component.VisitException: Visit failed for Component {key=Testorg.sonarqube:sonarqube-scanner,type=PROJECT_VIEW} located Test(type=VIEW)
      ...
      Caused by: java.lang.IllegalStateException: value can not be converted to level because current value type is a NO_VALUE
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julien.lancelot Julien Lancelot
                Reporter:
                ann.campbell.2 Ann Campbell
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: