X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=ci-management.git;a=blobdiff_plain;f=jjb%2Fric-plt-e2mgr%2Fric-plt-e2mgr.yaml;fp=jjb%2Fric-plt-e2mgr%2Fric-plt-e2mgr.yaml;h=bf7e817e572b863072924e5b2613db27b82c8356;hp=55ace218cf9e87605c9ec08011dec76a00e963a8;hb=6f1e4a5d0228befc2708469c4df985e3deee1876;hpb=d6b2f6b43972fc6e8aba8dcb5ff50ca0c52ca2c4 diff --git a/jjb/ric-plt-e2mgr/ric-plt-e2mgr.yaml b/jjb/ric-plt-e2mgr/ric-plt-e2mgr.yaml index 55ace218..bf7e817e 100644 --- a/jjb/ric-plt-e2mgr/ric-plt-e2mgr.yaml +++ b/jjb/ric-plt-e2mgr/ric-plt-e2mgr.yaml @@ -49,3 +49,34 @@ build-node: centos7-docker-2c-8g jobs: - '{project-name}-gerrit-release-jobs' + +- project: + name: ric-plt-e2mgr-sonar + project: ric-plt/e2mgr + project-name: ric-plt-e2mgr + # prescan script requires ubuntu + # golang is only on docker-enabled nodes + build-node: ubuntu1804-docker-4c-4g + sonar-prescan-script: !include-raw-escape: prescan-e2mgr-ubuntu.sh + sonar-project-file: "" + # use sonarcloud values from defaults.yaml + sonar-properties: | + # Required metadata + sonar.login={sonarcloud_api_token} + sonar.projectKey={sonarcloud_project_organization}_{project-name} + sonar.projectName={project-name} + sonar.organization={sonarcloud_project_organization} + # Encoding + sonar.build.sourceEncoding=UTF-8 + # Language + sonar.language=go + # Source + sonar.sources=E2Manager + # Unit tests + sonar.go.coverage.reportPaths=coverage.xml + # Inclusions + sonar.inclusions=**/**.go + # Exclusions + sonar.exclusions=**/mocks/**.go,**/tests/**.go + jobs: + - gerrit-sonar-prescan-script