sonarqube错误无法识别的命令行参数:Dsonar.scm.provider = git

时间:2017-10-23 11:18:50

标签: git jenkins msbuild sonarqube sonarqube-scan

Jenkins执行声纳命令并显示以下错误,是否有任何建议我们可能会收到此错误?

11:17:10.773  Unrecognized command line argument: Dsonar.scm.provider=git
11:17:10.775  Expecting at least the following command line argument:
- SonarQube project key
When connecting to a SonarQube server earlier than version 6.1, the following command line arguments are also required:
- SonarQube project name
- SonarQube project version
The full path to a settings file can also be supplied. If it is not supplied, the exe will attempt to locate a default settings file in the same directory as the SonarQube Scanner for MSBuild.
11:17:10.775  Pre-processing failed. Exit code: 1

1 个答案:

答案 0 :(得分:0)

你应该跑步: SonarScanner.MSBuild.exe / t:重建

正确的方法是: MSBuild.exe / t:重建

对于mac用户: dotnet build