- SonarQube version: Community Edition Version 7.1 (build 11001)
- Scanner version: SonarQube Scanner 3.2
we are using quality gate with below coditions
|Duplicated Lines on New Code (%)|Always|is greater than|1|
|New Bugs|Always|is greater than|0|
|New Code Smells|Always|is greater than|0|
|New Vulnerabilities|Always|is greater than|0|
git as VCS
- set leak period as 2019-10-10(yyyy-MM-dd) in project level, triggered a build from master branch of the project, quality gate went successful(as expected)
- triggered a build from feature branch of the project, which has some new code compared to master branch code.quality gate got failed(as expected)
3)again , we triggered a build from master branch, master branch does not have new code , but quality gate is failing with new code smells(not expected)
What are you trying to achieve?
quality gate should not fail for Master brach code, untill unless some new code changes in master branch.
How should we configure SonarQube to get the comparison we would like to have?
Thanks in advance.