Somehow my sonar qualityGate is Passing on PR branches and failing on master

Must-share information (formatted with Markdown):

  • Developer Edition
  • Version 9.4 (build 54424)

We have recently migrated our sonar instance from Version 6.7.2 (build 37468) to version 9.4
and when we run a pipeline on jenkins the sonar stage always passes whereas it fails on master due to rule being executed correctly. Can anyone help me with this .
I have included unused imports in one of the Java class which should lead to fail the qualityGate but it is passing on PR (Working fine on maste)

Hey there.

Please do not tag individuals in a thread who are not already engaged in a thread. Instead of bumping this to the top of Ann’s list – it actually moves it to the bottom.

Please read our FAQ, specifically this section.

1 Like

anyonw who can help !


I don’t understand the question. You’ve set your pipeline up to fail when the analysis fails the Quality Gate? But the pipeline passes even though the Quality Gate is failing? If so, can you share your pipeline and job logs?