Mac OSX Jenkins Sonar出现Xamarin问题

时间:2018-11-19 10:19:34

标签: xamarin jenkins xamarin.forms sonarqube

我一直在尝试为我的Xamarin项目在jenkins中运行SonarQube。我能够使用jenkins成功构建项目。

我的SonarScanner安装如下:

Screen Shot

当我尝试通过生成器运行声纳扫描仪时,出现以下错误。

> [app] $ dotnet /Users/zumry/.jenkins/tools/hudson.plugins.sonar.MsBuildSQRunnerInstallation/sonar-scanner/SonarScanner.MSBuild.dll begin /k:appid /n:xamarin_app /v:1.0 /d:sonar.host.url=http://localhost:9000 ******** sonar.login=admin sonar.password=admin

> FATAL: Cannot run program "dotnet" (in directory "/Users/zumry/.jenkins/workspace/app"): error=2, No such file or directory
java.io.IOException: error=2, No such file or directory
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
    at java.lang.ProcessImpl.start(ProcessImpl.java:134)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
Caused: java.io.IOException: Cannot run program "dotnet" (in directory "/Users/zumry/.jenkins/workspace/app"): error=2, No such file or directory

0 个答案:

没有答案