Hi,
Recently i have configured jenkins and sonar for my python project.
My sonar branch coverage results are not importing into sonarqube.
coverage.xml are generating in jenkins workspace.
Following are the below jenkins and error details :
WARN: No report was found for sonar.python.coverage.reportPaths using pattern coverage-reports/coverage.xml
I have tried in my ways but nothing worked.
And i use declarative jenkins pipeline in Multibranch project.
I expect my coverage results to reflect on sonar.
withSonarQubeEnv('Sonarqube') {
sh "${scannerHome}/bin/sonar-scanner -Dsonar.login=$USERNAME -Dsonar.password=$PASSWORD -Dsonar.projectKey=${params.PROJECT_KEY} -Dsonar.projectName=${params.PROJECT_NAME} -Dsonar.branch=${params.GIT_BRANCH} -Dsonar.projectVersion=${params.PROJECT_VERSION} -Dsonar.sources=. -Dsonar.language=${params.LANGUAGE} -Dsonar.python.pylint=${params.PYLINT_PATH} -Dsonar.python.pylint_config=${params.PYLINT} -Dsonar.python.pylint.reportPath=${params.PYLINT_REPORT} -Dsonar.sourceEncoding=${params.ENCODING} -Dsonar.python.xunit.reportPath=${params.NOSE} -Dsonar.python.coverage.reportPaths=${params.COVERAGE}"
}