https://github.com/sagarkpanda/sonarqube
SonarQube Analysis with Jenkins | SonarQube QualityGate | Github Action Integration.
https://github.com/sagarkpanda/sonarqube
coverage gradle jenkins project sonarqube static-analysis
Last synced: 2 months ago
JSON representation
SonarQube Analysis with Jenkins | SonarQube QualityGate | Github Action Integration.
- Host: GitHub
- URL: https://github.com/sagarkpanda/sonarqube
- Owner: sagarkpanda
- Created: 2023-04-30T06:14:10.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-03T14:48:47.000Z (over 2 years ago)
- Last Synced: 2024-04-07T11:22:58.546Z (about 2 years ago)
- Topics: coverage, gradle, jenkins, project, sonarqube, static-analysis
- Language: Java
- Homepage: https://sagarkrp.medium.com/how-to-install-and-configure-sonarqube-with-jenkins-2fe6c732620
- Size: 118 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SonarQube Analysis for Gradle
Read the detailed article on:
This example demonstrates how to analyze a simple project built with [Gradle](https://gradle.org/).
## Prerequisites
* [SonarQube](http://www.sonarqube.org/downloads/) 9.9 LTS or Latest
* A gradle wrapper is included that bundles gradle. All other required plugins will be pulled by gradle as needed.
## Usage
Run the following command (updating the sonar.host.url property as appropriate):
* On Unix-like systems:
`./gradlew -Dsonar.host.url=http://myhost:9000 sonar`
* On Windows:
`.\gradlew.bat -D'sonar.host.url=http://myhost:9000' sonar`
## Coverage
To get the project [test coverage](https://community.sonarsource.com/t/coverage-test-data-importing-jacoco-coverage-report-in-xml-format) computed, add gradle task `jacocoTestReport` to your command line.