我在Jenkins中配置了SonarRunner 2.3。在执行SonarQube扫描程序构建过程中,我已将我的属性更新为
# Required metadata
sonar.projectKey=test
sonar.projectName=test
sonar.projectVersion=1.0
sonar.projectBaseDir=/opt/app/jenkins/var/lib/jenkins/jobs/test1-BuildJob/workspace
#Path to Source
sonar.sources=/opt/app/jenkins/var/lib/jenkins/jobs/test-BuildJob/workspace/report-api/src, /opt/app/jenkins/var/lib/jenkins/jobs/test1-BuildJob/workspace/test-dao/src, /opt/app/jenkins/var/lib/jenkins/jobs/test1-BuildJob/workspace/test-model/src, /opt/app/jenkins/var/lib/jenkins/jobs/test-BuildJob/workspace/test-frontend/src
我的jenkins工作在不同的工作区运行。
/选择/应用程序/詹金斯的/ var / lib中/詹金斯/作业/ TestJob /作业/测试SonarAnalysis
如何配置声纳以在给定的sonar.projectbasedir中运行分析?