Hi, I would like to collect feedback before the upcoming release of the SonarQube Scanner for Jenkins.
The main new feature is that we introduced a new pipeline step that would put the pipeline in pause until SonarQube analysis is finished, and the step will then give access to the quality gate status. You can then implement any logic you want. Example: stage("build & SonarQube analysis") { node { withSonarQubeEnv('My SonarQube Server') { sh 'mvn clean package sonar:sonar' } } } stage("Quality Gate"){ timeout(time: 1, unit: 'HOURS') { def qg = *waitForQualityGate()* if (qg.status != 'OK') { error "Pipeline aborted due to quality gate failure: ${qg.status}" } } } You can test using this artifact: https://repox.sonarsource.com/sonarsource-public-builds/org/jenkins-ci/plugins/sonar/2.6-build1166/sonar-2.6-build1166.hpi Documentation is available directly on the step in the pipeline snippet generator. Feedback period is open until Friday. Regards, Julien -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAD9wyxEpf977L%3DxpzxaBZ0qMqOPO2CDQDEym7ue8MUGimhM2sQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.