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
答案 0 :(得分:0)
你应该跑步: SonarScanner.MSBuild.exe / t:重建
正确的方法是: MSBuild.exe / t:重建
对于mac用户: dotnet build