C++ analysis cache

  • ALM used: Github
  • CI system used: Github actions
  • Scanner command used when applicable (private details masked)
  • Languages of the repository:c++

I am using this flag sonar.cfamily.analysisCache.mode=server to scan our repo:

mvn -B -s .github/configs/m2/settings.xml verify org.sonarsource.scanner.maven:sonar-maven-plugin: -Pubuntu18 -Dbuild-type=Debug -DskipDocumentation -Dcoverage -Dsonar.cfamily.compile-commands=./compile_commands.json -Dsonar.cfamily.analysisCache.mode=server -Dsonar.coverage.jacoco.xmlReportPaths=$(pwd)/coverage-aggregator/target/site/jacoco-aggregate/jacoco.xml -PnativeVerbose -PwithoutBacktrace

Could you let me know how can I check if there is any analysis cached on server? Or is there anything in the log that tells me that the analysis has been successfully cached? Thanks!

According to this post, if you scan a branch, sonar will first search for cache on the server for the main/master branch. And after the scan for the branch, sonar will also not cache the result to server.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.