The original plugin doesn't work with SonarQube tokens. This "fixes" it by hacking everything around to use GET requests with tokens instead of a POST login request. This shouldn't be used in production. It just shows that it is possible and should be properly integrated into the original plugin.
Jenkins plugin that fails the build if the predefined sonar quality gates are not green.
- Sonar 5.6
- Sonar 6.x+
- In
Manage Jenkins -> Configure System -> Quality Gates - Sonarqube
add yours sonar configuration.
- 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
.