Groovy
You're viewing a free preview. Sign in free to read every script.
Why this exists Code analysis is useful only if a failing result stops the pipeline. This file does both halves: it sends the analysis to SonarQube, then waits for the quality gate and fails the build if the gate is…
sonarqube.groovy: Analysis and Quality Gate Stage
A stage file that runs SonarScanner against the sources and then waits for the SonarQube quality gate, failing the build if the gate is not OK. Includes the setup the stage depends on so it does not hang.
Sign in free to read this script, along with the rest of the library.
Sign in free