同一台机器上有2个Sonar实例 [英] 2 instances of Sonar on same machine
问题描述
我们可以在同一台机器上运行2个Sonar实例(2个不同版本)吗?
Can we run 2 instances(2 different versions) of Sonar on same machine?
目前,已安装了Sonar 3.7.3,并已与Hudson一起用于Sonar Reports. 现在,有些项目在Java 8上运行,而3.7.3 Sonar版本不支持Java 8.
At present Sonar 3.7.3 is installed and is been used with Hudson for Sonar Reports. Now, there are some projects that run on Java 8 and Java 8 is not supported by 3.7.3 Sonar version.
因此,要运行Java 8项目,我需要使用最新版本的Sonar,但是Sonar的升级会影响在Java 6上运行的现有项目.
So to run the Java 8 projects, I need to use the latest version of Sonar but upgradation of Sonar would impact the existing projects that run on Java 6.
那么我们可以配置2个Sonar实例并相应地配置Hudson,以便可以为Sonar报告运行java 6和java 8项目吗?
So can we configure 2 Sonar instances and can configure Hudson accordingly so that both the java 6 and java 8 projects can be run for Sonar reports?
推荐答案
是的,可以.只要确保以下变量是唯一的即可:
Yes, you can. Just make sure the following variables are unique:
-
conf/wrapper.conf
conf/wrapper.conf
- wrapper.ntservice.name = SonarQube [版本]
conf/sonar.properties
conf/sonar.properties
- sonar.web.port = [唯一端口]
- sonar.jdbc.url = jdbc:postgresql://localhost/sonar [version]#(如果您有Postgresql数据库)
这篇关于同一台机器上有2个Sonar实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!