Sonar Quality Gates Plugin
Jenkins plugin that fails the build if the predefined sonar quality gates are not green.
Sonarqube supported versions
- Sonar 5.6
- Sonar 6.x+
- Sonar 8.0+
Usage
-
In
Manage Jenkins -> Configure System -> Quality Gates - Sonarqube
add yours sonar configuration.- If token is specified, the parameters account login and account password will be ignored.
-
In jenkins job add a
Post-build Actions -> Quality Gates Sonarqube Plugin
and set the sonar instance, if you have multiple sonar configurations, andProject key
.
Issues
Forked from https://github.com/jenkinsci/quality-gates-plugin
3/4/2020 - Update to trigger build.