- Which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension): 7.7
- What are you trying to achieve: I want New code quality check to fail even after rerun.
- What have you tried so far to achieve this:
I am using default quality gate “Sonar way” for my project analysis. When new code push on git and build triggers, after analysis “sonar way” quality gate fails, which is perfect. But when I rerun the analysis and there is no code change, it passes the quality gate.
So I want to achieve that the analysis should run on the new code only(Which I assume that the metrics set for default sonar way quality gate are analyzing only the new code , not the whole project), but when I rerun the analysis should again fails (Which currently it passes as there is no new code).
How can I achieve that on rerun also, sonarqube quality gate should fails if there is no new code too and anaylisis should be done only for new code not on whole project?
Leak Period:- previous_version
Quality gate Metrics:-
Activity tab Screenshot:-