Hi,
We use sonarqube entreprise version 8.9.6 with Jenkins 2.346.1 and jenkins plugins sonnarQube Scanner in version 2.14 (cf SonarQube Scanner).
My jenkins job is configured not to fail on quality gate with this standard script :
waitForQualityGate abortPipeline: false
The false value is because of large legacy code base we want to improve progressively.
I was expecting it to work as the junit plugin : if some tests fail, the stage is displayed as unstable in jenkins but the job finishes ok.
With sonar quality gate with parameter abortPipeline at false, when my job does not meet the quality gate requirement, I would expect that if the quality gate fails, the stage is displayed as unstable (yellow) and the job finishes ok.
What I see as current behavior is the stage is ok (green) and the job finishes ok when the quality gate is not met.
So the precision of the result could be improved and I, for example, could configure jenkins to send a mail on unstable job to notify the team of quality gate failure but the build would be finished.
I did some search how it could be done and I discovered it is quite a recent behavior in Jenkins (introduced in 2019).
The following links could help you implement the wished behavior :
https://groups.google.com/g/jenkinsci-dev/c/5A7U1KmfX08/m/IP5Bg_OaAgAJ?pli=1
Could you please consider this small improvement and add the display of unstable stage when quality gate is not met and abort pipeline is configured at false.
Thank you,