Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-11271

Reenable SonarCloud with GHA

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • None
    • None
    • continuous integration
    • None

    Description

      Currently SonarCloud analysis is disabled in https://github.com/apache/jackrabbit-oak/commit/6b3512f120d061e523059797f04b26eb6f0c43ab with GHA.

      As automated analysis lacks some functionality (code coverage) we should explicitly trigger it from GitHub actions as outlined in https://docs.sonarsource.com/sonarcloud/advanced-setup/ci-based-analysis/sonarscanner-for-maven/.

      However SonarQube now requires Java17 and we only build with Java 11. Maybe one can leverage https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/analysis-parameters/#jre-autoprovisioning or use an approach like in https://github.com/apache/jackrabbit-filevault-jenkins-lib/blob/942dfe629c3cb3eb0aa1ae2b504393f2f927d26f/vars/vaultStageBuild.groovy#L70 which executes SonarCloud with a dedicated JRE separately after the main build.

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: