简体   繁体   English

Sonar-runner:找不到命令

[英]Sonar-runner: Command not found

-n Running Tailor...
-n Running Lizard..
++ sonar-runner
./run-sonar-swift.sh: line 82: sonar-runner: command not found
++ returnValue=127
++ set +x
ERROR - Command 'sonar-runner ' failed with error code: 127

I'm getting this message while Generating sonar report on Mac using Jenkins, about 2 weeks ago it was working fine but now I'm getting the error message.我在使用 Jenkins 在 Mac 上生成声纳报告时收到此消息,大约 2 周前它工作正常,但现在我收到错误消息。

Things which I did Last week: Updated my mac mini OS to Latest Updated XCode 10.3 to 11.1 but then just because of that error again downgraded to 10.3 Still getting that error message.我上周做的事情:将我的 mac mini 操作系统更新为最新更新的 XCode 10.3 到 11.1,但由于该错误再次降级到 10.3 仍然收到该错误消息。

Thanks谢谢

I finally resolved it, sonar-runner is deprecated now instead we have to use sonar-scanner but my project was built on sonar-runner if I want to make it as sonar-runner then I have to edit all the files which I can't, so instead of updating all the files I downloaded the old sonar-runner binaries and placed it in the same directory as sonar-scanner;also added the PATH to bash_profile.我终于解决了,现在不推荐使用声纳运行器,而是我们必须使用声纳扫描器,但是我的项目是建立在声纳运行器上的,如果我想将其设置为声纳运行器,那么我必须编辑所有可以的文件t,因此我没有更新所有文件,而是下载了旧的 sonar-runner 二进制文件并将其放在与 sonar-scanner 相同的目录中;还将 PATH 添加到 bash_profile。

Then I triggered the job then it worked...!!!然后我触发了工作然后它起作用了......!!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM