Sonar Base Path (#5189)

This commit is contained in:
Pere Miquel Brull 2022-05-27 13:31:10 +02:00 committed by GitHub
parent cf3d4314dd
commit 8fbac82196
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -77,6 +77,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.INGESTION_SONAR_SECRET }} SONAR_TOKEN: ${{ secrets.INGESTION_SONAR_SECRET }}
with: with:
projectBaseDir: ingestion/
args: > args: >
-Dproject.settings=ingestion/sonar-project.properties -Dproject.settings=ingestion/sonar-project.properties
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} -Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
@ -92,5 +93,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.INGESTION_SONAR_SECRET }} SONAR_TOKEN: ${{ secrets.INGESTION_SONAR_SECRET }}
with: with:
args: > projectBaseDir: ingestion/
-Dproject.settings=ingestion/sonar-project.properties

View File

@ -3,9 +3,9 @@ sonar.projectName=open-metadata-ingestion
sonar.organization=open-metadata sonar.organization=open-metadata
sonar.language=py sonar.language=py
sonar.sources=ingestion/src sonar.sources=src
sonar.tests=ingestion/tests sonar.tests=tests
sonar.exclusions=ingestion/src/metadata_server/static/**,ingestion/src/metadata_server/templates/** sonar.exclusions=src/metadata_server/static/**,ingestion/src/metadata_server/templates/**
sonar.python.xunit.reportPath=ingestion/junit/test-results-*.xml sonar.python.xunit.reportPath=junit/test-results-*.xml
sonar.python.coverage.reportPaths=ingestion/ci-coverage.xml sonar.python.coverage.reportPaths=coverage.xml
sonar.python.version=3.7,3.8,3.9 sonar.python.version=3.7,3.8,3.9