Skip to content

Commit

Permalink
Break build when Sonar quality gate is missed
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Apr 4, 2024
1 parent 6aed463 commit 0cec1e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ sonar {
property "sonar.host.url", System.getenv('SONAR_URL') ?: "https://sonarcloud.io"
property "sonar.scm.provider", "git"
property "sonar.coverage.jacoco.xmlReportPaths", "**/build/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.buildbreaker.skip", "false"
property "sonar.qualitygate.wait", true
}
}

Expand Down

0 comments on commit 0cec1e3

Please sign in to comment.