Hi Julien, 

this feature is nice but it has been easily possible to achieve the same 
with https://github.com/SonarQubeCommunity/sonar-build-breaker (or 
https://github.com/AmadeusITGroup/sonar-stash that we use ATM). 

A lot more important would be the long-standing 
issue https://jira.sonarsource.com/browse/SONAR-6763 - any news when 
quality gates on incremental (or if not incremental, at least on 
"non-server-side-saving") sonar runs will be possible?

Best Regards
Georg

On Wednesday, 22 February 2017 16:02:24 UTC+1, Julien HENRY wrote:
>
> 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/cd1b94a5-4fe1-47ac-b4ee-54db83ef8499%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to