From: Jessica Wagantall Date: Mon, 8 Apr 2024 18:07:26 +0000 (-0700) Subject: Fix: Add maven SonarCloud scan portion for this repo X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=1aba1be848d3ec2fbff91a5cfcdf089d530cfae3;p=nonrtric%2Fplt%2Frappcatalogue.git Fix: Add maven SonarCloud scan portion for this repo Change-Id: Iab7c734390ad1de18bfa771b71357129976410c7 Signed-off-by: Jessica Wagantall --- diff --git a/.github/workflows/gerrit-novote-merge.yaml b/.github/workflows/gerrit-novote-merge.yaml index 11f93f7..715cf7c 100644 --- a/.github/workflows/gerrit-novote-merge.yaml +++ b/.github/workflows/gerrit-novote-merge.yaml @@ -96,9 +96,35 @@ jobs: -Dsonar.sources=catalogue-enhanced -Dsonar.verbose=true + call-maven-sonarcloud-scan: + needs: notify + # yamllint disable-line rule:line-length + uses: lfit/releng-reusable-workflows/.github/workflows/composed-maven-sonar-cloud.yaml@main + with: + GERRIT_BRANCH: ${{ inputs.GERRIT_BRANCH }} + GERRIT_CHANGE_ID: ${{ inputs.GERRIT_CHANGE_ID }} + GERRIT_CHANGE_NUMBER: ${{ inputs.GERRIT_CHANGE_NUMBER }} + GERRIT_CHANGE_URL: ${{ inputs.GERRIT_CHANGE_URL }} + GERRIT_EVENT_TYPE: ${{ inputs.GERRIT_EVENT_TYPE }} + GERRIT_PATCHSET_NUMBER: ${{ inputs.GERRIT_PATCHSET_NUMBER }} + GERRIT_PATCHSET_REVISION: ${{ inputs.GERRIT_PATCHSET_REVISION }} + GERRIT_PROJECT: ${{ inputs.GERRIT_PROJECT }} + GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }} + ENV_SECRETS: "{}" + JDK_VERSION: "17" + SONAR_PROJECT_KEY: "nonrtric_plt_rappcatalogue" + SONAR_ORG: "o-ran-sc" + SONAR_ARGS: > + -Dsonar.sources=src/main + -Dsonar.test.inclusions=**/*.java,**/*.kt + -Dsonar.tests=src/test + -Dsonar.verbose=true + secrets: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + report-status: if: ${{ always() }} - needs: [notify, call-sonarcloud-scan] + needs: [notify, call-sonarcloud-scan, call-maven-sonarcloud-scan] runs-on: ubuntu-latest steps: - name: Get workflow conclusion