I am pretty new to Development community and specifically to DevOps practices , as a part of project we are trying to integrate SonarQube with Gitlab , did some R& D on SonarQube and Git CI ( Continuous Integration ) and look like plugin is released for Github and SonarQube whereas not for Gitlab.
How realistic is it to configure GitLab with SonarQube for inspecting code quality for every pull request and what will be the best practice to integrate these two piece.
Thanks
Currently there are (as far I am aware) two community driven plugins which aim to provide MR-analysis/integrate with GitLab.
Both of them are currently going through the Feedback phase for their next release and both aim to land into the Update Center with that release.
With both you're able to run a build which will provide comments in GitLab with the newly found violations. Both are highly inspired by SonarSource's GitHub plugin.
However I'm not in the position to advise you on which of the two to use as I'm the developer the first and thus biased.
you don't really need a plugin. make something like this in your
.gitlab-ci.yml
and every master push will be tested! (this is for a Java project...)
I was into same requirement and here is how I implemented,
Create a runner without specifying any tags and of shared type. Create a file
.gitlab-ci.yml
file with the following commands,If you create runner with specific tags, then you need to mention the tags in the
.gitlab-ci.yml
fileyou can get more information on adding tags in this link, https://forum.gitlab.com/t/activated-specific-runner-is-not-working/7002