SonarQube version: 7.9.1 LTS
sonar.leak.period = previous_version
We want our Quality Gate to fail if coverage decreases during the leak period, regardless of whether it is still above our threshold of 70% (Example: If coverage from last analysis was 75%, quality gate should fail if coverage on next analysis is 74.9% or lower).
In older versions of SonarQube this could be accomplished by using the condition “Coverage, Delta since last analysis, less than, 0”.
Is there a way to do that with the “Coverage on New Code” condition, like setting it to be less than the coverage value from the previous analysis?