CI: Add silent prescan SonarCloud job 93/12693/4
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Tue, 9 Apr 2024 00:18:28 +0000 (17:18 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 24 Apr 2024 17:20:50 +0000 (10:20 -0700)
Change-Id: I14c7454ed7860cbdc57f6032138940c8551a5434
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
.github/workflows/gerrit-novote-merge.yaml

index 83e4ba2..0d00cff 100644 (file)
@@ -86,17 +86,18 @@ jobs:
       GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }}
       JDK_VERSION: "17"
       # yamllint disable-line rule:line-length
-      PRE_BUILD_SCRIPT_URL: "https://raw.githubusercontent.com/o-ran-sc/ci-management/master/jjb/ric-plt-rtmgr/prescan-rtmgr-ubuntu.sh"
+      PRE_BUILD_SCRIPT_URL: "https://raw.githubusercontent.com/o-ran-sc/ci-management/master/jjb/ric-plt-e2mgr/prescan-e2mgr-ubuntu.sh"
       SONAR_ARGS: >
         -Dsonar.organization=o-ran-sc
-        -Dsonar.projectKey=o-ran-sc_ric-plt-rtmgr
-        -Dsonar.projectName=ric-plt-rtmgr
+        -Dsonar.projectKey=o-ran-sc_ric-plt-e2mgr
+        -Dsonar.projectName=ric-plt-e2mgr
         -Dsonar.build.sourceEncoding=UTF-8
         -Dsonar.language=go
-        -Dsonar.sources=.
-        -Dsonar.go.coverage.reportPaths=./coverage.txt
-        -Dsonar.inclusions=pkg/**/**.go
-        -Dsonar.exclusions=cmd/**.go,pkg/stub/**.go,pkg/**/**_test.go
+        -Dsonar.sources=E2Manager
+        -Dsonar.go.coverage.reportPaths=E2Manager/coverage.txt
+        -Dsonar.inclusions=**/**.go
+        -Dsonar.exclusions=**/mocks/**.go,**/tests/**.go
+        -Dsonar.test.inclusions=**/*_test.go
         -Dsonar.verbose=true
     secrets:
       SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}