简体   繁体   English

适用于Jenkins的SonarQube插件安装

[英]SonarQube plugin install for Jenkins

I have successfully install the SonarQube plugin for Jenkins. 我已经为Jenkins成功安装了SonarQube插件。 I am following this article which says click on "advance button" under SonarQube configuration. 我正在关注这篇文章,该文章说单击SonarQube配置下的“高级按钮”。 But I don't see the advance button there which I have to config the sonar server details. 但是我没有看到必须配置声纳服务器详细信息的高级按钮。

When I go to Plugin manager-Installed, I can see the SonarQube 2.2.1 Plugin also. 当我转到已安装插件管理器时,我也可以看到SonarQube 2.2.1插件。

Reference . 参考

Jenkins配置中的SonarQube Runner部分

Edit: 编辑:

Q1) When i ran the sonar build i get below error, but the sonar build get success. Q1)当我运行声纳构建时,我遇到错误,但是声纳构建获得成功。 I can see the dashboard was populated but i am uncertain whether is fully populated because of below error. 我可以看到仪表板已填充,但由于以下错误,我不确定是否已完全填充。

[ERROR] [23:02:19.082] Unable to create symbol table for : /var/lib/jenkins/jobs/Build-media-api/workspace/src/main/java/com/sample/la/ms/controller/MediaController.java
java.lang.IllegalStateException: Could not resolve type parameter: S in class Resources

Q2)How can ia incprporate a angular js project with Jenkins Sonar Qube plugin. Q2)如何使用Jenkins Sonar Qube插件实现angular js项目。 When i click on the "post build action" of my web project jenkins job, I get the SonarQube section with advance button. 当我单击Web项目jenkins作业的“构建后动作”时,我得到带有SonarQube部分的高级按钮。 But that advance button only support maven configaration which my web(angular) project has a bower.json file use with grunt. 但是该高级按钮仅支持Maven配置,我的Web(Angular)项目中的bower.json文件与grunt一起使用。

Did you add a SonarQube installation? 您是否添加了SonarQube安装? If you haven't added an installation (step 2) you can't configure it. 如果您尚未添加安装(步骤2),则无法对其进行配置。

Edit: You're mixing two different things... Your referenced link has two sections: 编辑:您正在混合两种不同的东西...您引用的链接有两个部分:

  1. Adding SonarQube Server - 3 steps - on step 2 you have the "advanced" button 添加SonarQube Server-3个步骤-在第2步中,您具有“高级”按钮
  2. Adding SonarQube Runner - 2 steps - there is no "advanced" button on step 2 添加SonarQube Runner-2个步骤-第2步没有“高级”按钮

The advanced button only shows up for configuring the SonarQube installation (server) . 仅显示高级按钮用于配置SonarQube安装(服务器) If you have multiple installation of SonarQube you can add all of them (configure the details like URL etc.) and select one later in the jenkins build job. 如果您有多个SonarQube安装,则可以添加所有安装(配置URL等详细信息),然后在jenkins构建作业中选择一个。

When you say you don't see the advanced button there, where is "there"? 当您说没有在此处看到高级按钮时,“那里”在哪里?

The configuration they are speaking of is actually when you are configuring your new project you are trying to build and deploy. 他们所说的配置实际上是在配置要构建和部署的新项目时。 So obviously you have some web project that you wish to manage with Jenkins. 因此,显然您有一些Web项目希望由Jenkins管理。 When you are configuring this new build process with Jenkins you should NOW see a new section for SonarQube. 在使用Jenkins配置此新的构建过程时,现在应该看到SonarQube的新部分。

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

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