https://github.com/yo1000/sonarqube-collaboration
✓ Published0🌍 Public
TThanad
Last edited Mar 14, 2017
Created on Mar 14, 2017
The example shows how to trigger SonarQube code analysis on a GitHub pull request, displaying defects and quality metrics directly in the pull request’s discussion thread. A bash script extracts the pull-request number from CI environment variables, then invokes the SonarQube Maven plugin with parameters for issue-mode analysis and GitHub authentication. It uses the `sonar-maven-plugin` (version 3.0.1) and the SonarQube GitHub plugin’s OAuth token to post results. The CircleCI configuration (`circle.yml`) runs the script during the `test` phase, followed by Maven integration tests.
AI-generated description