简体   繁体   English

为两个数据库配置声纳

[英]Configure sonar for two databases

I'm trying to integrate Sonar with Jenkins installation. 我正在尝试将Sonar与Jenkins安装集成。 In my Jenkins I have two projects : a Php project and a Java project. 在我的Jenkins中,我有两个项目:Php项目和Java项目。 I have also two databases one for each projet : sonar_ezpublish and sonar_genolims. 我还有两个数据库,每个数据库都有一个:sonar_ezpublish和sonar_genolims。

I installed SonarQube 5.6 and sonnar runner 3.0.3. 我安装了SonarQube 5.6和SonnarRunner 3.0.3。 How could I configure my sonar.properties for the two databases ? 如何为两个数据库配置sonar.properties?

My conf for the first database : 我的第一个数据库的conf:

sonar.jdbc.username=username
sonar.jdbc.password=password

#----- PostgreSQL 8.x/9.x
# If you don't use the schema named "public", please refer to http://jira.sonarsource.com/browse/SONAR-5000
sonar.jdbc.url=jdbc:postgresql://localhost/sonar_ezpublish

Leaving aside the fact that there doesn't seem to be a good reason to maintain a SonarQube instance per project... 撇开似乎没有充分的理由为每个项目维护SonarQube实例这一事实...

Configure two SonarQube instances at the global level. 在全局级别配置两个SonarQube实例。 You should then be able to specify which instance to use in each analysis. 然后,您应该能够指定在每个分析中使用哪个实例。

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

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