我想用sonarqube
來分析存儲在遠程機器上的TFS
文件系統中的代碼。如何設置sonarqube來分析來自TFS文件系統的遠程代碼?
所以我就:
machine A -> sonarqube
machine B -> TFS
這machine B
包含三個項目:proj1
,proj2
,並proj3
我需要配置sonarqube
「看」 到machine B
到這3個項目並對其進行分析。
在我sonar-project.properties
文件我有以下幾點:
# must be unique in a given SonarQube
sonar.projectKey=my:proj1
# this is the name displayed in the SonarQube UI
sonar.projectName=proj1
sonar.projectVersion=1.0
# sonar sources
sonar.sources=. <----what do I need to put here?
# Language
sonar.language=cs
# Encoding of the source files
sonar.sourceEncoding=UTF-8
什麼我需要把在球場上sonar.sources
?我以爲我只需要三個項目的TFS根目錄的IP/Port
位置......例如:http://192.168.1.102:3000?
sonar.sources=http://192.168.1.102:3000 # doesn't work :(
但它也不行......
另外,我怎麼可以設置:
sonar.projectKey
和sonar.projectName
分析所有三個項目?在我上面的例子中,只是看着proj1
。