1

将我的 scm 活动声纳从 3.7 更改为 sonarqube 5.1.1,因为它具有内置的 scm 插件。

没有得到运行它所需的配置以及传递什么

设置->一般设置->scm->sonar.scm.provider

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

URL:- 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 和声纳集成进行 CI 和报告

4

2 回答 2

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 分析。

注意:由于我们没有用于测试的 Clearcase 实例,因此在正式发布之前,我们正在等待积极的反馈(在 SonarQube Google 组上)。

于 2015-07-22T14:48:48.720 回答
0

为 SonarQube 安装 ClearCase 插件。从以下位置下载并编译它:

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

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

运行 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

于 2015-07-22T11:52:20.030 回答