简体   繁体   中英

Configure sonar for two databases

I'm trying to integrate Sonar with Jenkins installation. In my Jenkins I have two projects : a Php project and a Java project. I have also two databases one for each projet : sonar_ezpublish and sonar_genolims.

I installed SonarQube 5.6 and sonnar runner 3.0.3. How could I configure my sonar.properties for the two databases ?

My conf for the first database :

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...

Configure two SonarQube instances at the global level. You should then be able to specify which instance to use in each analysis.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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