Sonar: Multiple branches of a project, how to differentiate the results of statistical code checks 2_jenkins

Source: Internet
Author: User

Reprint Please note the source: http://blog.csdn.net/hwhua1986/article/details/62426560

Reference, please refer to SONAR website parameter Analysis page: https://docs.sonarqube.org/display/SONAR/Analysis+Parameters

The last time was by modifying the identity of the sonar management system

A better way to find out recently is to increase the "branch" parameter.


1. Add "Sonarqube analysis with Maven" in the Jenkins build operation.

2. Add Branch (branch) to the Sonarqube analysis with MAVEN and name the current Sonar Analytics project as one of the branches, as shown below


3, the implementation of the results can be seen in the build added "-dsonar.branch=xiangxiang", generate the address of the report added "Xiangxiang", the following figure



4, send the report address as follows:



5, sonar management system as follows: Three branches of the statistics in different projects



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.