hello, Trying to integrate SonarQube into GitLab-CI and perform analysis on merge requests/branch.
Note: Sonarqube (not Sonar-Scanner ) is installed on the Windows server.
GitLab-Runner is installed on the linux server (vagrant) .
hello, Trying to integrate SonarQube into GitLab-CI and perform analysis on merge requests/branch.
Hi,
You have another piece to install: the SonarScanner. The docs should get you started.
Â
HTH,
Ann
Hello,
Should i install “SonarScanner” on linux or windows?
Note: Sonarqube is installed on the Windows server and GitLab-Runner is installed on the linux server (vagrant) .
Thank you in advance
Hi,
Install whatever works best for you. It doesn’t matter what OS the SonarQube server is hosted on.
Â
HTH,
Ann
Hello Ann,
But shouldn’t it be installed in the runner? I’ve been through the documentation and this is not clear. I’m creating a pipeline in Gitlab and I receive the error that “bash: line xxx: sonar-scanner: command not found” as it was something that should be installed on the runner itself.
Thanks in advance!
Hi @Naxxer,
Welcome to the community!
Yes, the scanner should be installed on the build agent. If you have further questions, please do create a new thread.
Â
Ann
Hello,
I’m linking a thread that has the same root cause, as from the logs I can see that the GitLab runner used the shell instead of the docker executor. The answer there can help people who try to troubleshoot this issue.