SonarQube and BitBucket Integration on Pull Request

社会主义新天地 提交于 2019-12-01 09:26:38

The tool which is definitely suits your case is Sonar for Bitbucket.

It integrates well into a build pipeline with jenkins and sonarqube. additionally for triggering your analysis i recommend to use the plugin pullrequest-notifier, which allows you to react to special "pullrequest" events only -> this can reduce the amount of your builds heavily when it comes to sonar analysis for feature branches.

regarding Sonar for Bitbucket

just as an complete information! Sonarqube does not recommend to do branch analysis at the moment for feature branches. As this will generate a seperate project on sonarqube for each project and each analysed branch. Sonar for Bitbucket will clean those up.

In the future there will be a change, which seem to be presented already at the SonarSource City tour. When this change goes live, you will be able to do analyses in a more "branchy" style!

You may do static code analysis on the feature branches, in Jenkins, and report to Bitbucket Server with Violation Comments To Bitbucket Server Plugin.

There is also a bunch of other Gradle, and Maven, plugins to take care of violations found.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!