/sonar-qualitygate

Gradle plugin to verify Sonar quality-gate outcome

Primary LanguageJavaApache License 2.0Apache-2.0

Build Release License Version

sonar-qualitygate

Gradle plugin to verify Sonar quality-gate outcome

Usage

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.

License

Apache License 2.0