sudhakar k
sudhakar k

Reputation: 25

SonarQube Integration with GIT

I have a requirement where in if a developer commits code in git Sonarqube should automatically do a code analysis and display in the dash board. Sonarqube is in AWS Ubuntu instance. Code is written in c#?

I have installed Sonarqube ,Git and sonar Github plugin and generated ssh-key for sonar and copied to git. In Github plugin for GitHub API Endpoint what should be given? Please let me know any further steps to integrate git commits in Sonarqube?

Upvotes: 1

Views: 3453

Answers (1)

slartidan
slartidan

Reputation: 21576

You have to setup a build server (like "Jenkins" or "Bamboo" or similar) that gets triggered by git commits, checks out the code and runs a SonarQube analysis with the msbuild scanner.

You could also consider to use a cloud service for the builds - like "travis" for example.

Upvotes: 1

Related Questions