]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5399 Relax the condition on critical issues on the default quality gate
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 24 Jul 2014 12:18:18 +0000 (14:18 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 24 Jul 2014 12:18:18 +0000 (14:18 +0200)
server/sonar-server/src/main/java/org/sonar/server/qualitygate/RegisterQualityGates.java

index fecade74cd9182471c94dc5ccc4e9dc24732ad55..474d7f42f4708988973c1f8754bf903e29e83b22 100644 (file)
@@ -58,7 +58,7 @@ public class RegisterQualityGates implements Startable {
   private void createBuiltinQualityGate() {
     QualityGateDto builtin = qualityGates.create(BUILTIN_QUALITY_GATE);
     qualityGates.createCondition(builtin.getId(), CoreMetrics.BLOCKER_VIOLATIONS_KEY, QualityGateConditionDto.OPERATOR_GREATER_THAN, null, "0", null);
-    qualityGates.createCondition(builtin.getId(), CoreMetrics.CRITICAL_VIOLATIONS_KEY, QualityGateConditionDto.OPERATOR_GREATER_THAN, null, "0", null);
+    qualityGates.createCondition(builtin.getId(), CoreMetrics.CRITICAL_VIOLATIONS_KEY, QualityGateConditionDto.OPERATOR_GREATER_THAN, null, "0", 3);
     qualityGates.createCondition(builtin.getId(), CoreMetrics.TEST_ERRORS_KEY, QualityGateConditionDto.OPERATOR_GREATER_THAN, null, "0", null);
     qualityGates.createCondition(builtin.getId(), CoreMetrics.TEST_FAILURES_KEY, QualityGateConditionDto.OPERATOR_GREATER_THAN, null, "0", null);
     qualityGates.createCondition(builtin.getId(), CoreMetrics.NEW_COVERAGE_KEY, QualityGateConditionDto.OPERATOR_LESS_THAN, null, "80", 3);