php - Configure sonar for two databases

212

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
668

Answer

Solution:

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.

People are also looking for solutions to the problem: php - Symfony checkboxes lists twig rendering

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.