Adding quality gate/profile configuration to Gradle plugin

I’d like to be able to configure quality gate in gradle build script as below

sonarqube {
  properties {
    property "sonar.qualitygate", "My Quality Gate"
    property "sonar.qualitygate.code_coverage.name", "Code Coverage"
    property "sonar.qualitygate.code_coverage.status", "ERROR"
    property "sonar.qualitygate.code_coverage.metric", "coverage"
    property "sonar.qualitygate.code_coverage.op", "LT"
    property "sonar.qualitygate.code_coverage.error", "80"

    property "sonar.qualitygate.new_code_coverage.name", "New Code Coverage"
    property "sonar.qualitygate.new_code_coverage.status", "ERROR"
    property "sonar.qualitygate.new_code_coverage.metric", "new_coverage"
    property "sonar.qualitygate.new_code_coverage.op", "LT"
    property "sonar.qualitygate.new_code_coverage.error", "100"
  }
}

Hi,

Welcome to the community!

I’ve moved your thread to the Product Manager for a Day category since the feature doesn’t exist.

Could you help us understand why setting it via the UI isn’t sufficient?

What you’ve proposed implies the ability to change Quality Gate criteria with every run. Why is that desirable?

 
Thx,
Ann