Versions Compared

Key

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

...

Execution of the build via make should create the output file build-wrapper-dump.json, which can be consumed by the Sonar scanner.

An example in the Examples: O-RAN-SC project is https://gerrit.o-ran-sc.org/r/admin/repos/ric-plt/lib/rmr and JJB jobs are configured in job configuration https://gerrit.o-ran-sc.org/r/gitweb?p=ci-management.git;a=blob;f=jjb/ric-plt-lib-rmr/ric-plt-lib-rmr.yaml

...

Execution of the build via this command should create the output file coverage.txt, which can be consumed by the Sonar scanner. However modules are not supported yet by the Sonar Scanner. The problem and some workarounds are described here: https://jira.sonarsource.com/browse/SONARSLANG-450

An example in the Examples: O-RAN-SC project is https://gerrit.o-ran-sc.org/r/admin/repos/ric-plt/alarm-go and job configuration https://gerrit.o-ran-sc.org/r/gitweb?p=ci-management.git;a=blob;f=jjb/ric-plt-alarm-go/ric-plt-alarm-go.yaml

Configure Java Project for Code Coverage

...

Execution of the build via maven should create the output file target/jacoco.exec, which can be consumed by the Sonar scanner.

An example in the Examples: O-RAN-SC project is https://gerrit.o-ran-sc.org/r/admin/repos/portal/ric-dashboard and job configuration https://gerrit.o-ran-sc.org/r/gitweb?p=ci-management.git;a=blob;f=jjb/portal-ric-dashboard/portal-ric-dashboard.yaml

Configure Python Project for Code Coverage

...

Execution of the build via tox (really just tests) should create the output file coverage.xml, which can be consumed by the Sonar scanner.

An example in the Examples: O-RAN-SC project is https://gerrit.o-ran-sc.org/r/admin/repos/ric-plt/a1 and job configuration https://gerrit.o-ran-sc.org/r/gitweb?p=ci-management.git;a=blob;f=jjb/ric-plt-a1/ric-plt-a1.yaml

Setting up development environment

...