如何在声纳中使用SCM Activity插件进行clearcase

时间:2015-07-21 09:41:18

标签: maven jenkins sonarqube clearcase maven-scm

将scm活动的声纳从3.7改为sonarqube 5.1.1,就像它内置的scm插件一样。

没有获得运行该内容以及传递内容所需的配置

设置 - > genral setting-> scm-> sonar.scm.provider

我找到了这个链接 http://maven.apache.org/scm/clearcase.html 并创建了一个

网址: - scm:clearcase:baxi_view_4:clinical

  

错误

     

org.apache.maven.plugin.MojoExecutionException:SCM提供程序设置为“scm:clearcase:baxi_view_4:clinical”,但找不到此密钥的SCM提供程序。支持的SCM提供程序是git,svn

以及我的代码中需要的其他更改或配置,还是我必须在pom.xml中指定的内容。

我正在使用jenkins和声纳Integration for CI和报告

2 个答案:

答案 0 :(得分:1)

您必须为SonarQube安装ClearCase插件。由于没有正式版本从以下版本下载SNAPSHOT: https://github.com/SonarCommunity/sonar-scm-clearcase/releases/download/1.0-rc1/sonar-scm-clearcase-plugin-1.0-SNAPSHOT.jar

插件文档在这里: http://docs.sonarqube.org/display/PLUG/ClearCase+Plugin

确保将sonar.scm.provider=clearcase添加到sonar.properties并重新运行SonarQube分析。

N.B。:在正式发布之前,我们正在等待积极的反馈(在SonarQube Google小组上),因为我们没有Clearcase实例进行测试。

答案 1 :(得分:0)

为SonarQube安装ClearCase插件。从以下网址下载并编译:

http://github.com/SonarCommunity/sonar-scm-clearcase

确保将sonar.scm.provider=clearcase添加到sonar.properties并重新运行Sonar分析。

运行Jenkins的机器应该有ClearCase。并确保Jenkins可以从控制台运行cleartool命令。

感谢@Julien H. - SonarSource团队

使用JRE 7运行SonarQube:

从SonarQube页面:

  

SonarQube Java分析器能够分析任何类型的Java源文件,无论它们遵循哪种Java版本。但SonarQube分析和SonarQube服务器需要执行一些特定版本的JVM。

我们可以在我们的机器上安装许多JRE版本。对于SonarQube,只需在运行之前设置JRE变量。

Linux上的示例

export JRE_1.7=/opt/jre_1.7

export PATH=$JRE_1.7/bin:$PATH

java -version

/opt/sonar/sonarqube-5.1.1/bin/sonar.sh start