SonarQube on Mac OS


(Elavarasan Chidambaram) #1

Hi,

We need to setup SonarQube on Mac machine to analyse code quality check on iOS applications. We have already done a POC on individual Mac laptop. Now the requirement to setup a centralised SonarQube dashboard. I have few questions regarding the same.

  1. We already have centralised Sonarqube system on Windows server that is integrated with our Continuous Integration process. Is there a way to achieve the same for Mac setup? Limitation is we don’t have a Mac Virtual machine on our Cloud environment and Individual Mac laptop can’t be used.
  2. Can we use the existing system for SonarQube server and setup iOS Mac applications on different Mac machine for analysis part only? In other words, can someone run analysis on a Mac laptop and post the results on existing Sonarqube dashboard?
  3. Is there any customer who has done this setup that supports different platforms Windows, Mac and etc. Please provide the details.

Thanks for the support.


(G Ann Campbell) #2

Hi,

You don’t need two different instances of SonarQube. What you need is two different analysis machines in your CI system: one on which analyses of MSBuild projects takes place, and one on which analysis of Mac projects takes place. Both types of analysis will send results to the same, central SonarQube instance using -Dsonar.host.url=http://my.sonarqube.instance

 
Ann


(Elavarasan Chidambaram) #3

Hi @ganncamp Thanks a lot for the details. We are using AWS Cloud for our Infrastructure. For MSBuild projects, we have Windows servers on AWS. But unfortunately AWS doesn’t provide Mac OS virtual machines. Could you please suggest if there is any other way to setup Mac projects? Like virtualization? All we need to have Mac machine (not Mac laptop) on our network, like we have windows machines. Has any of your customer done similar Mac setup? Please advise. Thanks again.


(Colin Mueller) #4

Elavarasan,

Any build considerations with regard to macOS are going to be independent of the platform you host SonarQube on. SonarQube can run on Linux, Windows, or macOS, and any SonarQube server can accept analysis reports from scans performed on any of those operating systems.

So the answer to

Can we use the existing system for SonarQube server and setup iOS Mac applications on different Mac machine for analysis part only? In other words, can someone run analysis on a Mac laptop and post the results on existing Sonarqube dashboard?

Is yes.

Colin


(Elavarasan Chidambaram) #5

@ColinHMueller

Great. Thanks Colin for the information.