Gradle plugin to verify Sonar quality-gate outcome
plugins {
id 'org.sonarqube' version '3.2.0'
id 'com.carepay.sonar-qualitygate' version '0.0.5'
}
When the plugin is included in your build file, it will automatically run after Sonar has finished. The plugin will wait for the analysis to be completed, then it will look at the qualitygate project status. If the qualitygate fails, the build will fail.
The plugin will use the Sonar login token from the sonarqube
task.
Apache License 2.0