我已经在Azure虚拟机中设置了SonarQube。
sonarqube-5.4
MSBuild.SonarQube.Runner-2.0
位于9000端口的SonarQube网站已启动并运行。
(http://something.regionname.cloudapp.azure.com:9000/)
现在,如何在本地竹子构建服务器上执行sonarrunner?
配置设置和其他更改是什么?
早些时候,我用竹子在本地成功地设置了sonarqube,因为所有的都是本地路径。
但是现在,我想在不同的服务器上安装sonarqube和竹子。如何将这两者联系起来?
请提供详细的注释/设置。
谢谢
巴纽。
发布于 2016-05-04 21:27:52
有一个用于此的竹子插件:https://marketplace.atlassian.com/plugins/com.marvelution.bamboo.plugins.sonar.tasks/server/overview
我还没有用过它,我不知道它是否支持MSBuild的SonarQube扫描器(我对此持怀疑态度)。
也许你最好的办法就是把竹子当作一个漂亮的CLI,然后使用follow the instructions for analyzing from the command line。也就是说。
通过竹子运行命令:
MSBuild.SonarQube.Runner.exe begin /k:"sonarqube_project_key" /n:"sonarqube_project_name" /v:"sonarqube_project_version"MSBuild.SonarQube.Runner.exe end在竹子服务器
发布于 2016-05-11 18:27:50
竹子服务器具有可用于执行代码的Sonar Runner任务。您需要在根文件夹中具有sonar-project.properties文件。
需要完成的设置包括:
sonar.projectKey=<projectkey>
sonar.projectName=<projectname>
sonar.projectVersion=1.0.0
sonar.sourceEncoding=UTF-8
# Enable the Visual Studio bootstrapper
sonar.visualstudio.enable=true
# Code Coverage
#placeholder-for-modular-coverage-reporting
# Unit Test Results
#placeholder-for-modular-unit-test-reporting
# Required only when using SonarQube < 4.2
sonar.language=cs
# FXCop
# This property is set because it is required by the SonarQube Runner.
# But it is not taken into account because the location of the source
# code is retrieved from the .sln and .csproj files.
sonar.sources=.
# If you have multiple solution files then use the current one by setting up the below property
sonar.visualstudio.outputPaths=
# Test projects can be imported as unit test code (which is not analyzed by coding rules) using the regular expression property
#sonar.visualstudio.testProjectPattern=
#sonar.visualstudio.solution=YourSolution.sln
sonar.visualstudio.skipIfNotBuilt=true此Msbuild Sonar可能会对您有所帮助。
发布于 2016-11-05 01:51:58
Mibex Software优秀的免费Sonar for Bamboo已经发展成为针对竹子的规范(和支持的) SonarQube集成-它提供了一个竹子任务来使用Sonar for Maven,Gradle & SonarRunner分析项目,还支持基于Sonar的代码审查的自动分支-
https://stackoverflow.com/questions/37025033
复制相似问题