Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

SonarQube

Configuration

SonarCloud

From Eric Ball:

"We have several docs on implementing Sonar jobs for various languages from our global-jjb templates, such as this one for maven sonar jobs: https://docs.releng.linuxfoundation.org/projects/global-jjb/en/latest/jjb/lf-maven-jobs.html#lf-infra-maven-sonarcloud

We could link to those, but I could probably put together something a little simpler that would allow for faster implementation. Also, all of our Sonar jobs are currently built using a maven template, so even those that we've implemented for Python and C require a pom.xml in the repo. We are currently working on a language-agnostic version that will use a standard sonar-project.properties file, and it should be implemented soon (I know that the code is mostly finished, so it may even be ready to go in the next few days, if it doesn't run into any hurdles in review). I'm not sure what the timeline requirements are for implementing this, but all the non-Java projects will probably want to wait until that is ready before implementing scans (if possible)."

SonarQube on-prem

Akraino code scan is migrating to use SonarCloud, the following will be removed once the migration is done. 

Following configuration assumes SonarQube on prem. As LF is moving to SonarCloud, the setup might be different. 

...

SonarQube scan results can be accessed from https://sonarsonarcloud.akraino.orgio/organizations/akraino-edge-stack/projectsYou should be able to log in with your LFID credentials, the same as you would use for Gerrit or Jenkins.

...